]> git.baikalelectronics.ru Git - kernel.git/commit
.gitattributes: set git diff driver for C source code files
authorJean Delvare <jdelvare@suse.de>
Sat, 8 Oct 2016 00:03:04 +0000 (17:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 8 Oct 2016 01:46:30 +0000 (18:46 -0700)
commit42da130092f63cb6dbf5cc1e36c34f5667f689b6
tree0753355904c0b5a1a174e5c43b2680e105bf9afb
parent527277edcd45de4d8eb896d73ceb69260521285f
.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@endymion
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Joe Perches <joe@perches.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
.gitattributes [new file with mode: 0644]