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 <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Michael J Gruber
2011-04-26 10:24:29 +02:00
committed by Junio C Hamano
parent ec014eac0e
commit b388e14b89
4 changed files with 40 additions and 3 deletions

View File

@ -141,6 +141,7 @@ struct rev_info {
/* commit counts */
int count_left;
int count_right;
int count_same;
};
#define REV_TREE_SAME 0