mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
treewide: use setup_revisions_from_strvec() when we have a strvec
The previous commit introduced a wrapper to make using setup_revisions() with a strvec easier and safer. It converted spots that were already doing most of what the wrapper did. Let's now convert spots where we were not setting up the free_removed_argv_elements flag. As discussed in the previous commit, this probably isn't fixing any bugs or leaks (since these sites wouldn't trigger the re-shuffling of argv that causes them). This is mostly future-proofing us against setup_revisions() becoming more aggressive about its re-shuffling. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
f93c1d86cc
commit
b553332f82
@@ -900,7 +900,7 @@ static void collect_changed_submodules(struct repository *r,
|
||||
save_warning = warn_on_object_refname_ambiguity;
|
||||
warn_on_object_refname_ambiguity = 0;
|
||||
repo_init_revisions(r, &rev, NULL);
|
||||
setup_revisions(argv->nr, argv->v, &rev, &s_r_opt);
|
||||
setup_revisions_from_strvec(argv, &rev, &s_r_opt);
|
||||
warn_on_object_refname_ambiguity = save_warning;
|
||||
if (prepare_revision_walk(&rev))
|
||||
die(_("revision walk setup failed"));
|
||||
|
||||
Reference in New Issue
Block a user