From b388e14b89f0a82b8067b3922a93cf2d1b013ff0 Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Tue, 26 Apr 2011 10:24:29 +0200 Subject: rev-list --count: separate count for --cherry-mark When --count is used with --cherry-mark, omit the patch equivalent commits from the count for left and right commits and print the count of equivalent commits separately. Signed-off-by: Michael J Gruber Signed-off-by: Junio C Hamano --- t/t6007-rev-list-cherry-pick-file.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 't') diff --git a/t/t6007-rev-list-cherry-pick-file.sh b/t/t6007-rev-list-cherry-pick-file.sh index cacf3de6c9..28d4f6b259 100755 --- a/t/t6007-rev-list-cherry-pick-file.sh +++ b/t/t6007-rev-list-cherry-pick-file.sh @@ -157,6 +157,33 @@ test_expect_success '--cherry' ' test_cmp actual.named expect ' +cat >expect < actual && + test_cmp actual expect +' + +cat >expect < actual && + test_cmp actual expect +' + +cat >expect < actual && + test_cmp actual expect +' + test_expect_success '--cherry-pick with independent, but identical branches' ' git symbolic-ref HEAD refs/heads/independent && rm .git/index && -- cgit v1.2.1