The patch titled Subject: .gitattributes: set git diff driver for C source code files has been added to the -mm tree. Its filename is set-git-diff-driver-for-c-source-code-files.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/set-git-diff-driver-for-c-source-code-files.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/set-git-diff-driver-for-c-source-code-files.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Jean Delvare <jdelvare@xxxxxxx> Subject: .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@xxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Joe Perches <joe@xxxxxxxxxxx> Cc: Jonathan Corbet <corbet@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) diff -puN /dev/null .gitattributes --- /dev/null +++ a/.gitattributes @@ -0,0 +1,2 @@ +*.c diff=cpp +*.h diff=cpp _ Patches currently in -mm which might be from jdelvare@xxxxxxx are set-git-diff-driver-for-c-source-code-files.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html