]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
Improve 'git diff' of Python files.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 13 Apr 2024 18:16:44 +0000 (11:16 -0700)
committerBruno Haible <bruno@clisp.org>
Sat, 13 Apr 2024 18:26:59 +0000 (20:26 +0200)
* .gitattributes: Add a rule for *.py files.

.gitattributes
ChangeLog

index bad5997b571d6736a085aca9e6cb237988746762..c7fecf66a5744dc9cac1307b7ce4ccec83e2346e 100644 (file)
@@ -8,3 +8,6 @@ ChangeLog       merge=merge-changelog
 # Run this to make 'git diff' on .m4 files give nicer hunk context:
 #   git config diff.m4.xfuncname '^((AC_DEFUN|m4_define)[^,)]*)'
 *.m4   diff=m4
+
+# Improve diff hunk context on Python files.
+*.py   diff=python
index 4a5594c5cd0fa7843954b58c2bc56ac1cc617948..c9349f22aca7779e36375082e3e50b343db497f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-04-13  Collin Funk  <collin.funk1@gmail.com>
+
+       Improve 'git diff' of Python files.
+       * .gitattributes: Add a rule for *.py files.
+
 2024-04-13  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Fix extra arguments to function call.