Skip to content

Commit bbffb02

Browse files
LukeShugitster
authored andcommitted
subtree: use "^{commit}" instead of "^0"
They are synonyms. Both are used in the file. ^{commit} is clearer, so "standardize" on that. Signed-off-by: Luke Shumaker <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 22d5507 commit bbffb02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/subtree/git-subtree.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ find_latest_squash () {
316316
main="$b"
317317
;;
318318
git-subtree-split:)
319-
sub="$(git rev-parse "$b^0")" ||
319+
sub="$(git rev-parse "$b^{commit}")" ||
320320
die "could not rev-parse split hash $b from commit $sq"
321321
;;
322322
END)
@@ -363,7 +363,7 @@ find_existing_splits () {
363363
main="$b"
364364
;;
365365
git-subtree-split:)
366-
sub="$(git rev-parse "$b^0")" ||
366+
sub="$(git rev-parse "$b^{commit}")" ||
367367
die "could not rev-parse split hash $b from commit $sq"
368368
;;
369369
END)

0 commit comments

Comments
 (0)