diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-04-13 22:01:50 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-04-14 08:56:09 +0200 |
commit | 689a8e80dd4f7b3a20be88146bdea833c7759603 (patch) | |
tree | 3b59de124fe5c41ba3e9e78415b60c66d1b0a61c /diff-lib.c | |
parent | revisions API: have release_revisions() release "grep_filter" (diff) | |
download | git-689a8e80dd4f7b3a20be88146bdea833c7759603.tar.xz git-689a8e80dd4f7b3a20be88146bdea833c7759603.zip |
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 'diff-lib.c')
-rw-r--r-- | diff-lib.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/diff-lib.c b/diff-lib.c index 0f16281253..298265e5b5 100644 --- a/diff-lib.c +++ b/diff-lib.c @@ -641,7 +641,6 @@ int do_diff_cache(const struct object_id *tree_oid, struct diff_options *opt) if (diff_cache(&revs, tree_oid, NULL, 1)) exit(128); - clear_pathspec(&revs.prune_data); release_revisions(&revs); return 0; } |