Merge branch 'rs/clear-commit-marks-in-repo'

Code clean-up.

* rs/clear-commit-marks-in-repo:
  bisect: clear flags in passed repository
  object: allow clear_commit_marks_all to handle any repo
This commit is contained in:
Junio C Hamano
2020-11-11 13:18:37 -08:00
5 changed files with 9 additions and 8 deletions

View File

@ -1042,7 +1042,7 @@ static void orphaned_commit_warning(struct commit *old_commit, struct commit *ne
describe_detached_head(_("Previous HEAD position was"), old_commit);
/* Clean up objects used, as they will be reused. */
clear_commit_marks_all(ALL_REV_FLAGS);
repo_clear_commit_marks(the_repository, ALL_REV_FLAGS);
}
static int switch_branches(const struct checkout_opts *opts,

View File

@ -794,7 +794,7 @@ static int should_write_commit_graph(void)
result = for_each_ref(dfs_on_ref, &data);
clear_commit_marks_all(SEEN);
repo_clear_commit_marks(the_repository, SEEN);
return result;
}