summaryrefslogtreecommitdiff
path: root/t/t4014-format-patch.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2015-07-15 11:41:16 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-07-15 11:41:16 -0700
commit93eba05b4f0b235dd859d9a9ed6ebb1ed49e1d60 (patch)
tree8fbac7039f2f44a682f250b42fe65be5d2147190 /t/t4014-format-patch.sh
parentMerge branch 'jk/stash-require-clean-index' into maint (diff)
parentformat-patch: do not feed tags to clear_commit_marks() (diff)
downloadtgif-93eba05b4f0b235dd859d9a9ed6ebb1ed49e1d60.tar.xz
Merge branch 'jc/do-not-feed-tags-to-clear-commit-marks' into maint
"git format-patch --ignore-if-upstream A..B" did not like to be fed tags as boundary commits. * jc/do-not-feed-tags-to-clear-commit-marks: format-patch: do not feed tags to clear_commit_marks()
Diffstat (limited to 't/t4014-format-patch.sh')
-rwxr-xr-xt/t4014-format-patch.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh
index c39e50028f..890db1174f 100755
--- a/t/t4014-format-patch.sh
+++ b/t/t4014-format-patch.sh
@@ -57,6 +57,14 @@ test_expect_success "format-patch --ignore-if-in-upstream" '
'
+test_expect_success "format-patch --ignore-if-in-upstream handles tags" '
+ git tag -a v1 -m tag side &&
+ git tag -a v2 -m tag master &&
+ git format-patch --stdout --ignore-if-in-upstream v2..v1 >patch1 &&
+ cnt=$(grep "^From " patch1 | wc -l) &&
+ test $cnt = 2
+'
+
test_expect_success "format-patch doesn't consider merge commits" '
git checkout -b slave master &&