diff options
author | Patrick Steinhardt <ps@pks.im> | 2023-10-31 09:16:33 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-11-01 12:09:00 +0900 |
commit | 84650989b7055a9016972b8430c882d7d8582e4f (patch) | |
tree | 1a055906068dcbb2a1ed87c9cca53ee675b76f50 /t/t9133-git-svn-nested-git-repo.sh | |
parent | 7907fb0c97740ce2cb9ce0db706dc66c77bb70a7 (diff) |
builtin/show-ref: stop using global variable to count matches
When passing patterns to git-show-ref(1) we're checking whether any
reference matches -- if none do, we indicate this condition via an
unsuccessful exit code.
We're using a global variable to count these matches, which is required
because the counter is getting incremented in a callback function. But
now that we have the `struct show_ref_data` in place, we can get rid of
the global variable and put the counter in there instead.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9133-git-svn-nested-git-repo.sh')
0 files changed, 0 insertions, 0 deletions