Skip to content

Commit ad20fb4

Browse files
author
Thomas Monjalon
committed
improve git diff
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]>
1 parent 8ccc927 commit ad20fb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.c diff=cpp
2+
*.h diff=cpp
3+
*.py diff=python

0 commit comments

Comments
 (0)