Skip to content

Commit

Permalink
improve git diff
Browse files Browse the repository at this point in the history
Sometimes git does not print the name of the function being changed
after @@. It happens especially after a goto label which is not indented.
Giving a hint about the languages of files .c, .h and .py
will improve hunk headers of "git diff" rendering.

Signed-off-by: Thomas Monjalon <[email protected]>
  • Loading branch information
Thomas Monjalon committed Nov 13, 2016
1 parent 8ccc927 commit ad20fb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.c diff=cpp
*.h diff=cpp
*.py diff=python

0 comments on commit ad20fb4

Please sign in to comment.