git diff hunk header for API contract files #2115
KalleOlaviNiemitalo
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
git diff
comparing versions of an API contract file normally shows the namespace in the hunk header. For example, comparing 2.0.0-beta4.23171.1 to 2.0.0-beta4.23172.1:git diff 02a776b901846b96cc2a7442b2032102944cafa9 0403596afba9f622468d26c15a81fa17e881b1df -- "src/System.CommandLine.ApiCompatibility.Tests/*.txt"
(truncated for brevity):With a little configuration, I can make it show the name of the type instead.
.git/info/attributes
:.git/config
:Then it shows this instead (truncated again):
Alas, the
.git/config
change cannot be automatically cloned with the repository. Because of that, I don't think would be useful to adddiff=api-contract
to the distributed.gitattributes
file, either.Beta Was this translation helpful? Give feedback.
All reactions