about summary refs log tree commit diff
path: root/third_party/git/t/t4021-format-patch-numbered.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/t4021-format-patch-numbered.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/t4021-format-patch-numbered.sh')
-rwxr-xr-xthird_party/git/t/t4021-format-patch-numbered.sh141
1 files changed, 0 insertions, 141 deletions
diff --git a/third_party/git/t/t4021-format-patch-numbered.sh b/third_party/git/t/t4021-format-patch-numbered.sh
deleted file mode 100755
index 9be65fd4440a..000000000000
--- a/third_party/git/t/t4021-format-patch-numbered.sh
+++ /dev/null
@@ -1,141 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2006 Brian C Gernhardt
-#
-
-test_description='Format-patch numbering options'
-
-. ./test-lib.sh
-
-test_expect_success setup '
-
-	echo A > file &&
-	git add file &&
-	git commit -m First &&
-
-	echo B >> file &&
-	git commit -a -m Second &&
-
-	echo C >> file &&
-	git commit -a -m Third
-
-'
-
-# Each of these gets used multiple times.
-
-test_num_no_numbered() {
-	cnt=$(grep "^Subject: \[PATCH\]" $1 | wc -l) &&
-	test $cnt = $2
-}
-
-test_single_no_numbered() {
-	test_num_no_numbered $1 1
-}
-
-test_no_numbered() {
-	test_num_no_numbered $1 2
-}
-
-test_single_cover_letter_numbered() {
-	grep "^Subject: \[PATCH 0/1\]" $1 &&
-	grep "^Subject: \[PATCH 1/1\]" $1
-}
-
-test_single_numbered() {
-	grep "^Subject: \[PATCH 1/1\]" $1
-}
-
-test_numbered() {
-	grep "^Subject: \[PATCH 1/2\]" $1 &&
-	grep "^Subject: \[PATCH 2/2\]" $1
-}
-
-test_expect_success 'single patch defaults to no numbers' '
-	git format-patch --stdout HEAD~1 >patch0.single &&
-	test_single_no_numbered patch0.single
-'
-
-test_expect_success 'multiple patch defaults to numbered' '
-
-	git format-patch --stdout HEAD~2 >patch0.multiple &&
-	test_numbered patch0.multiple
-
-'
-
-test_expect_success 'Use --numbered' '
-
-	git format-patch --numbered --stdout HEAD~1 >patch1 &&
-	test_single_numbered patch1
-
-'
-
-test_expect_success 'format.numbered = true' '
-
-	git config format.numbered true &&
-	git format-patch --stdout HEAD~2 >patch2 &&
-	test_numbered patch2
-
-'
-
-test_expect_success 'format.numbered && single patch' '
-
-	git format-patch --stdout HEAD^ > patch3 &&
-	test_single_numbered patch3
-
-'
-
-test_expect_success 'format.numbered && --no-numbered' '
-
-	git format-patch --no-numbered --stdout HEAD~2 >patch4 &&
-	test_no_numbered patch4
-
-'
-
-test_expect_success 'format.numbered && --keep-subject' '
-
-	git format-patch --keep-subject --stdout HEAD^ >patch4a &&
-	grep "^Subject: Third" patch4a
-
-'
-
-test_expect_success 'format.numbered = auto' '
-
-	git config format.numbered auto &&
-	git format-patch --stdout HEAD~2 > patch5 &&
-	test_numbered patch5
-
-'
-
-test_expect_success 'format.numbered = auto && single patch' '
-
-	git format-patch --stdout HEAD^ > patch6 &&
-	test_single_no_numbered patch6
-
-'
-
-test_expect_success 'format.numbered = auto && --no-numbered' '
-
-	git format-patch --no-numbered --stdout HEAD~2 > patch7 &&
-	test_no_numbered patch7
-
-'
-
-test_expect_success '--start-number && --numbered' '
-
-	git format-patch --start-number 3 --numbered --stdout HEAD~1 > patch8 &&
-	grep "^Subject: \[PATCH 3/3\]" patch8
-'
-
-test_expect_success 'single patch with cover-letter defaults to numbers' '
-	git format-patch --cover-letter --stdout HEAD~1 >patch9.single &&
-	test_single_cover_letter_numbered patch9.single
-'
-
-test_expect_success 'Use --no-numbered and --cover-letter single patch' '
-	git format-patch --no-numbered --stdout --cover-letter HEAD~1 >patch10 &&
-	test_no_numbered patch10
-'
-
-
-
-test_done