Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-04-13 23:01:50 +0300
committerJunio C Hamano <gitster@pobox.com>2022-04-14 09:56:09 +0300
commit689a8e80dd4f7b3a20be88146bdea833c7759603 (patch)
tree3b59de124fe5c41ba3e9e78415b60c66d1b0a61c /builtin/add.c
parentf41fb662f57abccf24d036bb0fd4294eb72261af (diff)
revisions API: have release_revisions() release "prune_data"
Extend the the release_revisions() function so that it frees the "prune_data" in the "struct rev_info". This means that any code that calls "release_revisions()" already can get rid of adjacent calls to clear_pathspec(). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/add.c')
-rw-r--r--builtin/add.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/add.c b/builtin/add.c
index 115a26ea63..fc729e14c1 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -142,7 +142,6 @@ int add_files_to_cache(const char *prefix,
rev.diffopt.flags.override_submodule_config = 1;
rev.max_count = 0; /* do not compare unmerged paths with stage #2 */
run_diff_files(&rev, DIFF_RACY_IS_MODIFIED);
- clear_pathspec(&rev.prune_data);
release_revisions(&rev);
return !!data.add_errors;
}