From 13517c8cc8904a74b9a05455d086e6db9493304f Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 19 Oct 2020 11:29:18 -0700 Subject: [PATCH] bpo-42084: Language aware diff headers --- .gitattributes | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitattributes b/.gitattributes index 598d8f0f159aee..3827d09709d4a7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -57,3 +57,13 @@ Doc/library/token-list.inc linguist-generated=true Include/token.h linguist-generated=true Lib/token.py linguist-generated=true Parser/token.c linguist-generated=true + +# Language aware diff headers +# https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more +# https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81 +*.c diff=cpp +*.h diff=cpp +*.css diff=css +*.html diff=html +*.py diff=python +*.md diff=markdown