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 <lukeshu@datawire.io> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Luke Shumaker committed
Apr 27, 2021 at 15:17 UTC
bbffb023830f9b68e2c461e47756579a5cd6ab7a
1 file changed
+2
-2
contrib/subtree/git-subtree.sh
+2
-2
@@ -316,7 +316,7 @@ find_latest_squash () {
316
main="$b"
317
;;
318
git-subtree-split:)
319
- sub="$(git rev-parse "$b^0")" ||
319
+ sub="$(git rev-parse "$b^{commit}")" ||
320
die "could not rev-parse split hash $b from commit $sq"
321
;;
322
END)
@@ -363,7 +363,7 @@ find_existing_splits () {
363
main="$b"
364
;;
365
git-subtree-split:)
366
- sub="$(git rev-parse "$b^0")" ||
366
+ sub="$(git rev-parse "$b^{commit}")" ||
367
die "could not rev-parse split hash $b from commit $sq"
368
;;
369
END)