.gitattributes: set git diff driver for C source code files
authorJean Delvare <jdelvare@suse.de>
Sat, 10 Sep 2016 10:34:19 +0000 (20:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 10 Sep 2016 10:34:19 +0000 (20:34 +1000)
commit8ee9c3ad64c45bde8253bcc02390d0634e93be98
treeb5949b4e168c4022a8dcc4442bdbd10d2eaf662f
parentdfc420491c1b84cbc0eca29726f0e62f35640cb3
.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>
.gitattributes [new file with mode: 0644]
This page took 0.025441 seconds and 5 git commands to generate.