summaryrefslogtreecommitdiff
path: root/t/t4021-format-patch-numbered.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-05-16 19:49:42 -0700
committerJunio C Hamano <gitster@pobox.com>2009-05-16 19:49:42 -0700
commit671d1bc6a098d1015fbdd6e085d6daf12c1dce15 (patch)
tree20fa2bf3411f0ac3b3185a2f354b03341b92aa14 /t/t4021-format-patch-numbered.sh
parent8a94bc7bdc54db0d77058e63baf173ff932cba7c (diff)
parente4b09dad9f65395fd4bb8ab165012a3a6698a75b (diff)
downloadgit-671d1bc6a098d1015fbdd6e085d6daf12c1dce15.tar.gz
Merge branch 'maint'
* maint: test: checkout shouldn't say that HEAD has moved if it didn't completion: enhance "current branch" display completion: simplify "current branch" in __git_ps1() completion: fix PS1 display during a merge on detached HEAD builtin-checkout: Don't tell user that HEAD has moved before it has pre-commit.sample: don't print incidental SHA1 tests: Add tests for missing format-patch long options api-parse-options.txt: use 'func' instead of 'funct' Turn on USE_ST_TIMESPEC for OpenBSD ls-tree manpage: output of ls-tree is compatible with update-index ls-tree manpage: use "unless" instead of "when ... is not"
Diffstat (limited to 't/t4021-format-patch-numbered.sh')
-rwxr-xr-xt/t4021-format-patch-numbered.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t4021-format-patch-numbered.sh b/t/t4021-format-patch-numbered.sh
index 390af2389f..3c27f0dc19 100755
--- a/t/t4021-format-patch-numbered.sh
+++ b/t/t4021-format-patch-numbered.sh
@@ -108,4 +108,10 @@ test_expect_success 'format.numbered = auto && --no-numbered' '
'
+test_expect_success '--start-number && --numbered' '
+
+ git format-patch --start-number 3 --numbered --stdout HEAD~1 > patch8 &&
+ grep "^Subject: \[PATCH 3/3\]" patch8
+'
+
test_done