用于解决冲突的可视化工具合并为单个文件

时间:2010-05-27 12:37:05

标签: merge diff

我做了一个git merge并最终得到了一个像这样的文件:

class member extends item{
    /********CONSTANTS**********/ 
    const is_flaggable = true;
    const is_commentable = false;
    const is_ratable = false; 
    const table = 'member'; 
<<<<<<< HEAD
    const table_about = 'mem_about' ;
    const table_to_about  = 'mem_to_about' ;
    const table_hobbies = 'mem_to_hobby'; 

=======
    const table_friendship = 'friendship'; 
    const table_about = 'mem_about' ;
    const table_to_about  = 'mem_to_about' ;
    const table_hobbies = 'mem_to_hobby'; 
    const table_friendship_id = 3; 
>>>>>>> my-copy

在这个文件中有很多像这样的块。是否有可视化工具来帮助我查看此文件并选择我想要的更改?我找到的大多数diff工具都是为了查看两个文件。

1 个答案:

答案 0 :(得分:2)

在Windows上,您可以使用CVS Conflict Editor。在Linux上使用TKDiff-conflict <filename>切换。