@matheusbsbs / matheus-bagliano / commits / bd7c8aab70
Fork 0

format-patch: "rev1.." should mean "rev1..HEAD"

"rev1.." should mean "rev1..HEAD"; git-diff users are familiar with that syntax. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Nov 5, 2005 at 02:47 UTC bd7c8aab7098e6e340060c0d7f1fab8595905b2d
1 file changed +7
git-format-patch.sh
+7
@@ -92,11 +92,18 @@ filelist=$tmp-files
92 # 3. "rev1" "rev2 is equivalent to "rev1..rev2"
93 #
94 # We want to take a sequence of "rev1..rev2" in general.
95 +# Also, "rev1.." should mean "rev1..HEAD"; git-diff users are
96 +# familiar with that syntax.
97
98 case "$#,$1" in
99 1,?*..?*)
100 # single "rev1..rev2"
101 ;;
102 +1,?*..)
103 + # single "rev1.." should mean "rev1..HEAD"
104 + set x "$1"HEAD"
105 + shift
106 + ;;
107 1,*)
108 # single rev1
109 set x "$1..HEAD"