On Thu, Oct 26, 2023 at 11:56:42AM +0200, Patrick Steinhardt wrote: > When passing patterns to git-show-ref(1) we're checking whether any > reference matches -- if none does, we indicate this condition via an > unsuccessful exit code. s/does/do, but not a big enough deal to reroll IMHO. > 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@xxxxxx> > --- > builtin/show-ref.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) Looks all good to me! Thanks, Taylor