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 <jkukkonen@google.com>
1 parent b5bb27f commit b5f5957

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
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)