about summary refs log tree commit diff
path: root/third_party/git/t/t7007-show.sh
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-09-21T10·03+0300
committerVincent Ambo <mail@tazj.in>2021-09-21T11·29+0300
commit43b1791ec601732ac31195df96781a848360a9ac (patch)
treedaae8d638343295d2f1f7da955e556ef4c958864 /third_party/git/t/t7007-show.sh
parent2d8e7dc9d9c38127ec4ebd13aee8e8f586a43318 (diff)
chore(3p/git): Unvendor git and track patches instead r/2903
This was vendored a long time ago under the expectation that keeping
it in sync with cgit would be easier this way, but it has proven not
to be a big issue.

On the other hand, a vendored copy of git is an annoying maintenance
burden. It is much easier to rebase the single (dottime) patch that we
have.

This removes the vendored copy of git and instead passes the git
source code to cgit via `pkgs.srcOnly`, which includes the applied
patch so that cgit can continue rendering dottime.

Change-Id: If31f62dea7ce688fd1b9050204e9378019775f2b
Diffstat (limited to 'third_party/git/t/t7007-show.sh')
-rwxr-xr-xthird_party/git/t/t7007-show.sh131
1 files changed, 0 insertions, 131 deletions
diff --git a/third_party/git/t/t7007-show.sh b/third_party/git/t/t7007-show.sh
deleted file mode 100755
index 42d3db624686..000000000000
--- a/third_party/git/t/t7007-show.sh
+++ /dev/null
@@ -1,131 +0,0 @@
-#!/bin/sh
-
-test_description='git show'
-
-. ./test-lib.sh
-
-test_expect_success setup '
-	echo hello world >foo &&
-	H=$(git hash-object -w foo) &&
-	git tag -a foo-tag -m "Tags $H" $H &&
-	HH=$(expr "$H" : "\(..\)") &&
-	H38=$(expr "$H" : "..\(.*\)") &&
-	rm -f .git/objects/$HH/$H38
-'
-
-test_expect_success 'showing a tag that point at a missing object' '
-	test_must_fail git --no-pager show foo-tag
-'
-
-test_expect_success 'set up a bit of history' '
-	test_commit main1 &&
-	test_commit main2 &&
-	test_commit main3 &&
-	git tag -m "annotated tag" annotated &&
-	git checkout -b side HEAD^^ &&
-	test_commit side2 &&
-	test_commit side3 &&
-	test_merge merge main3
-'
-
-test_expect_success 'showing two commits' '
-	cat >expect <<-EOF &&
-	commit $(git rev-parse main2)
-	commit $(git rev-parse main3)
-	EOF
-	git show main2 main3 >actual &&
-	grep ^commit actual >actual.filtered &&
-	test_cmp expect actual.filtered
-'
-
-test_expect_success 'showing a range walks (linear)' '
-	cat >expect <<-EOF &&
-	commit $(git rev-parse main3)
-	commit $(git rev-parse main2)
-	EOF
-	git show main1..main3 >actual &&
-	grep ^commit actual >actual.filtered &&
-	test_cmp expect actual.filtered
-'
-
-test_expect_success 'showing a range walks (Y shape, ^ first)' '
-	cat >expect <<-EOF &&
-	commit $(git rev-parse main3)
-	commit $(git rev-parse main2)
-	EOF
-	git show ^side3 main3 >actual &&
-	grep ^commit actual >actual.filtered &&
-	test_cmp expect actual.filtered
-'
-
-test_expect_success 'showing a range walks (Y shape, ^ last)' '
-	cat >expect <<-EOF &&
-	commit $(git rev-parse main3)
-	commit $(git rev-parse main2)
-	EOF
-	git show main3 ^side3 >actual &&
-	grep ^commit actual >actual.filtered &&
-	test_cmp expect actual.filtered
-'
-
-test_expect_success 'showing with -N walks' '
-	cat >expect <<-EOF &&
-	commit $(git rev-parse main3)
-	commit $(git rev-parse main2)
-	EOF
-	git show -2 main3 >actual &&
-	grep ^commit actual >actual.filtered &&
-	test_cmp expect actual.filtered
-'
-
-test_expect_success 'showing annotated tag' '
-	cat >expect <<-EOF &&
-	tag annotated
-	commit $(git rev-parse annotated^{commit})
-	EOF
-	git show annotated >actual &&
-	grep -E "^(commit|tag)" actual >actual.filtered &&
-	test_cmp expect actual.filtered
-'
-
-test_expect_success 'showing annotated tag plus commit' '
-	cat >expect <<-EOF &&
-	tag annotated
-	commit $(git rev-parse annotated^{commit})
-	commit $(git rev-parse side3)
-	EOF
-	git show annotated side3 >actual &&
-	grep -E "^(commit|tag)" actual >actual.filtered &&
-	test_cmp expect actual.filtered
-'
-
-test_expect_success 'showing range' '
-	cat >expect <<-EOF &&
-	commit $(git rev-parse main3)
-	commit $(git rev-parse main2)
-	EOF
-	git show ^side3 annotated >actual &&
-	grep -E "^(commit|tag)" actual >actual.filtered &&
-	test_cmp expect actual.filtered
-'
-
-test_expect_success '-s suppresses diff' '
-	cat >expect <<-\EOF &&
-	merge
-	main3
-	EOF
-	git show -s --format=%s merge main3 >actual &&
-	test_cmp expect actual
-'
-
-test_expect_success '--quiet suppresses diff' '
-	echo main3 >expect &&
-	git show --quiet --format=%s main3 >actual &&
-	test_cmp expect actual
-'
-
-test_expect_success 'show --graph is forbidden' '
-  test_must_fail git show --graph HEAD
-'
-
-test_done