path: root/.gitattributes
AgeCommit message (Collapse)AuthorLines
2016-10-07.gitattributes: set git diff driver for C source code filesJean Delvare-0/+2
Git can be told to apply language-specific rules when generating diffs. Enable this for C source code files (*.c and *.h) so that function names are printed right. Specifically, doing so prevents "git diff" from mistakenly considering unindented goto labels as function names. Link: Signed-off-by: Jean Delvare <> Cc: Peter Zijlstra <> Cc: Joe Perches <> Cc: Jonathan Corbet <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>