summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-05 19:42:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-03-05 21:39:45 (GMT)
commite895cb5135d7fbff8037ce83302aff12ee83667c (patch)
tree6bdf0e10c5fb1facb6acb4c11c5b2ccef710d1ac /commit.h
parente6363a4992637267ef212d7c709ede17d4122e0d (diff)
downloadgit-e895cb5135d7fbff8037ce83302aff12ee83667c.zip
git-e895cb5135d7fbff8037ce83302aff12ee83667c.tar.gz
git-e895cb5135d7fbff8037ce83302aff12ee83667c.tar.bz2
commit.c: add clear_commit_marks_many()
clear_commit_marks(struct commit *, unsigned) only can clear flag bits starting from a single commit; introduce an API to allow feeding an array of commits, so that flag bits can be cleared from commits reachable from any of them with a single traversal. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index b6ad8f3..b997eea 100644
--- a/commit.h
+++ b/commit.h
@@ -134,6 +134,7 @@ struct commit *pop_most_recent_commit(struct commit_list **list,
struct commit *pop_commit(struct commit_list **stack);
void clear_commit_marks(struct commit *commit, unsigned int mark);
+void clear_commit_marks_many(int nr, struct commit **commit, unsigned int mark);
void clear_commit_marks_for_object_array(struct object_array *a, unsigned mark);
/*