Menu

Commit [218dd8]  Maximize  Restore  History

.gitattributes: set git diff driver for C source code files

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: http://lkml.kernel.org/r/20160907143403.1449324f@...
Signed-off-by: Jean Delvare <jdelvare@...>
Cc: Peter Zijlstra <peterz@...>
Cc: Joe Perches <joe@...>
Cc: Jonathan Corbet <corbet@...>
Signed-off-by: Andrew Morton <akpm@...>
Signed-off-by: Linus Torvalds <torvalds@...>

Jean Delvare Jean Delvare 2016-10-08

Linus Torvalds Linus Torvalds 2016-10-08

added .gitattributes
.gitattributes Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB