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>
This commit is contained in:
Jussi Kukkonen 2024-02-21 12:55:17 +02:00
parent b5bb27fa94
commit b5f5957b15

1
.gitattributes vendored
View file

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