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,
780780
781781void clear_commit_marks_many (size_t nr , struct commit * * commit , unsigned int mark )
782782{
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 );
791785}
792786
793787void clear_commit_marks (struct commit * commit , unsigned int mark )
794788{
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 );
796794}
797795
798796struct commit * pop_commit (struct commit_list * * stack )
You can’t perform that action at this time.
0 commit comments