File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -780,19 +780,17 @@ static void clear_commit_marks_1(struct commit_list **plist,
780
780
781
781
void clear_commit_marks_many (size_t nr , struct commit * * commit , unsigned int mark )
782
782
{
783
- for (size_t i = 0 ; i < nr ; i ++ ) {
784
- struct commit_list * list = NULL ;
785
-
786
- clear_commit_marks_1 (& list , * commit , mark );
787
- while (list )
788
- clear_commit_marks_1 (& list , pop_commit (& list ), mark );
789
- commit ++ ;
790
- }
783
+ for (size_t i = 0 ; i < nr ; i ++ )
784
+ clear_commit_marks (commit [i ], mark );
791
785
}
792
786
793
787
void clear_commit_marks (struct commit * commit , unsigned int mark )
794
788
{
795
- clear_commit_marks_many (1 , & commit , mark );
789
+ struct commit_list * list = NULL ;
790
+
791
+ clear_commit_marks_1 (& list , commit , mark );
792
+ while (list )
793
+ clear_commit_marks_1 (& list , pop_commit (& list ), mark );
796
794
}
797
795
798
796
struct commit * pop_commit (struct commit_list * * stack )
You can’t perform that action at this time.
0 commit comments