Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Merge/diff tool that can show authors (supports blame or annotate) in files under version control

When merging files it will be helpful (as for me) to show an author of each line. Is there any diff or merge tool supporting that?

like image 542
ASten Avatar asked Feb 14 '13 20:02

ASten


People also ask

What is annotate with git blame?

The high-level function of git blame is the display of author metadata attached to specific committed lines in a file. This is used to examine specific points of a file's history and get context as to who the last author was that modified the line.

What kind of symbol does the display of the modified file the diff of the file use to show a changed line in the modified file?

So whenever diff shows you the changes related to the first file, they will be marked by - and the changes in the second file will be marked by the symbol +. This means that lines one and two were changed in the first file and line one was changed in the second file.


1 Answers

The bundled gitk tool is not really a merge tool, but it shows conflicted lines with red and blue and "+"'s in front, and you can Rightclick->"Show origin of this line" on any of them, to go to the commit which introduced the line:

Screenshot

You can run your mergetool, or just a text editor with diffmarks in parallel

like image 180
max630 Avatar answered Sep 21 '22 15:09

max630