合并时意外缺乏冲突

时间:2012-10-02 14:15:26

标签: git merge git-merge

我尝试合并两个分支 - master(当前)和UrlHandlePoint(unactive):

$ git merge UrlHandlerPoint

我建议它会引起冲突,因为这里的代码有明显区别(它从同一行#27开始):

主:

.27    public function actionIndex()
    {
        // renders the view file 'protected/views/site/index.php'
        // using the default layout 'protected/views/layouts/main.php'
        $about="Page content \"About\"";
        $this->render('index', array('res'=>$about));
    }

UrlHandlerPoint:

.27    public function actionIndex($alias=false)
    {
        $data=Data::getDataByAlias('o_kompanii',$alias);
        $this->render('index', array('res' => $data));
    }

但是git只是采用主分支的版本而不是冲突问题。 有谁知道为什么?和/或我理解错在哪里?

1 个答案:

答案 0 :(得分:2)

好吧,既然你没有回答评论,我会尝试继续猜测。 ; - )

差异不是冲突。我的猜测是文件只在master分支中被更改,因此,正在合并的分支上没有冲突的变化。