summaryrefslogtreecommitdiff
path: root/t/t6015-rev-list-show-all-parents.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-02-21 23:27:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-02-22 20:15:25 (GMT)
commitf74bbc8dd2637498bc07132ae6bfa6d1b88dafb0 (patch)
tree6b2f22aa92cf499c48057815ca4a6449a6ed5b17 /t/t6015-rev-list-show-all-parents.sh
parent7fa31b645f25b87c5e3261a21045b2fb685ed8e2 (diff)
downloadgit-f74bbc8dd2637498bc07132ae6bfa6d1b88dafb0.zip
git-f74bbc8dd2637498bc07132ae6bfa6d1b88dafb0.tar.gz
git-f74bbc8dd2637498bc07132ae6bfa6d1b88dafb0.tar.bz2
revision: drop --show-all option
This was an undocumented debugging aid that does not seem to have come in handy in the past decade, judging from its lack of mentions on the mailing list. Let's drop it in the name of simplicity. This is morally a revert of 3131b71301 (Add "--show-all" revision walker flag for debugging, 2008-02-09), but note that I did leave in the mapping of UNINTERESTING to "^" in get_revision_mark(). I don't think this would be possible to trigger with the current code, but it's the only sensible marker. We'll skip the usual deprecation period because this was explicitly a debugging aid that was never documented. Signed-off-by: Jeff King <peff@peff.net> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6015-rev-list-show-all-parents.sh')
-rwxr-xr-xt/t6015-rev-list-show-all-parents.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/t/t6015-rev-list-show-all-parents.sh b/t/t6015-rev-list-show-all-parents.sh
deleted file mode 100755
index 3c73c93..0000000
--- a/t/t6015-rev-list-show-all-parents.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-test_description='--show-all --parents does not rewrite TREESAME commits'
-
-. ./test-lib.sh
-
-test_expect_success 'set up --show-all --parents test' '
- test_commit one foo.txt &&
- commit1=$(git rev-list -1 HEAD) &&
- test_commit two bar.txt &&
- commit2=$(git rev-list -1 HEAD) &&
- test_commit three foo.txt &&
- commit3=$(git rev-list -1 HEAD)
- '
-
-test_expect_success '--parents rewrites TREESAME parents correctly' '
- echo $commit3 $commit1 > expected &&
- echo $commit1 >> expected &&
- git rev-list --parents HEAD -- foo.txt > actual &&
- test_cmp expected actual
- '
-
-test_expect_success '--parents --show-all does not rewrites TREESAME parents' '
- echo $commit3 $commit2 > expected &&
- echo $commit2 $commit1 >> expected &&
- echo $commit1 >> expected &&
- git rev-list --parents --show-all HEAD -- foo.txt > actual &&
- test_cmp expected actual
- '
-
-test_done