Skip to content

Commit 02c4934

Browse files
committed
BreakingChanges: say that git diff X..Y syntax will be removed in 3.0
The `git diff X..Y` syntax is quite misleading because it looks like it shows the diff of the commits in the X..Y range but it actually shows the diff from X to Y. IMO, if that syntax is supported, it should show a diff from the merge base of X and Y to Y. I hope Git 3.0 is a good time to remove support for the current syntax and semantics. Then we can perhaps add the syntax back later with less surprising semantics. Signed-off-by: Martin von Zweigbergk <martinvonz@google.com>
1 parent 143f58e commit 02c4934

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/BreakingChanges.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ applications and forges.
114114
+
115115
There is no plan to deprecate the "sha1" object format at this point in time.
116116
+
117+
Support for "git diff X..Y" syntax will be removed. Use "git diff X Y" instead.
118+
This will open up the syntax for a more consistent interpretation of
119+
"git diff $(git merge-base X Y) Y".
120+
+
117121
Cf. <2f5de416-04ba-c23d-1e0b-83bb655829a7@zombino.com>,
118122
<20170223155046.e7nxivfwqqoprsqj@LykOS.localdomain>,
119123
<CA+EOSBncr=4a4d8n9xS4FNehyebpmX8JiUwCsXD47EQDE+DiUQ@mail.gmail.com>.

0 commit comments

Comments
 (0)