Skip to content

Commit b5f5957

Browse files
committed
gitattributes: Fix diff hunk headers
Git is really bad at identifying the correct Python function in the diff hunk headers (this is a change in Metadata.sign()): @@ -384,7 +384,7 @@ class Metadata(Generic[T]): Amazingly there is much better context detection built-in, just not enabled. The same diff hunk headers with this commit looks like: @@ -384,7 +384,7 @@ def sign( Signed-off-by: Jussi Kukkonen <[email protected]>
1 parent b5bb27f commit b5f5957

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Test data should not be modified on checkout, regardless of host settings
22
*.json binary
3+
*.py diff=python

0 commit comments

Comments
 (0)