diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-04-13 22:01:44 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-04-13 23:56:09 -0700 |
commit | f0cb6b8053eb9146e9d5255b6b0473d020c6e8bd (patch) | |
tree | 884ec63039b04bbcd23c88cc23385f74c47e743c /wt-status.c | |
parent | bf1b32d0991cfead7e5604897d0866b789bf602e (diff) | |
download | git-f0cb6b8053eb9146e9d5255b6b0473d020c6e8bd.tar.gz |
revisions API users: use release_revisions() for "prune_data" users
Use release_revisions() for users of "struct rev_list" that reach into
the "struct rev_info" and clear the "prune_data" already.
In a subsequent commit we'll teach release_revisions() to clear this
itself, but in the meantime let's invoke release_revisions() here to
clear anything else we may have missed, and for reasons of having
consistent boilerplate.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.c')
-rw-r--r-- | wt-status.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wt-status.c b/wt-status.c index f910062137..a14fad1e03 100644 --- a/wt-status.c +++ b/wt-status.c @@ -617,6 +617,7 @@ static void wt_status_collect_changes_worktree(struct wt_status *s) copy_pathspec(&rev.prune_data, &s->pathspec); run_diff_files(&rev, 0); clear_pathspec(&rev.prune_data); + release_revisions(&rev); } static void wt_status_collect_changes_index(struct wt_status *s) |