commit: factor out clear_commit_marks_for_object_array
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 1 Oct 2011 16:16:08 +0000 (18:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Oct 2011 18:15:34 +0000 (11:15 -0700)
commit86a0a408b900eecc9d0d4a1eb8ae223181e96679
treeeb8bb329861f3d6a9868025551f30c835b1b99f0
parent1062141928aaa1d272be8ce007d371168e8daef6
commit: factor out clear_commit_marks_for_object_array

Factor out the code to clear the commit marks for a whole struct
object_array from builtin/checkout.c into its own exported function
clear_commit_marks_for_object_array and use it in bisect and bundle
as well.  It handles tags and commits and ignores objects of any
other type.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.c
builtin/checkout.c
bundle.c
commit.c
commit.h