From: Sven Verdoolaege <skimo@xxxxxxxxxx> Signed-off-by: Sven Verdoolaege <skimo@xxxxxxxxxx> --- revision.c | 4 +++- revision.h | 1 + 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/revision.c b/revision.c index 0035d40..8d3bed2 100644 --- a/revision.c +++ b/revision.c @@ -1421,8 +1421,10 @@ static struct commit *get_revision_1(struct rev_info *revs) if (revs->no_merges && commit->parents && commit->parents->next) continue; - if (!commit_match(commit, revs)) + if (!commit_match(commit, revs)) { + commit->object.flags |= PRUNED; continue; + } if (revs->prune_fn && revs->dense) { /* Commit without changes? */ if (!(commit->object.flags & TREECHANGE)) { diff --git a/revision.h b/revision.h index 9728d4c..d3609ab 100644 --- a/revision.h +++ b/revision.h @@ -10,6 +10,7 @@ #define CHILD_SHOWN (1u<<6) #define ADDED (1u<<7) /* Parents already parsed and added? */ #define SYMMETRIC_LEFT (1u<<8) +#define PRUNED (1u<<9) struct rev_info; struct log_info; -- 1.5.3.rc0.68.geec71-dirty - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html