]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs_ref_iterator_begin(): don't check prefixes redundantly
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 22 May 2017 14:17:36 +0000 (16:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 May 2017 05:29:53 +0000 (14:29 +0900)
commitc7599718167de62c437490e9ea300eeb9284a572
tree8ce2f1351c2287cf6ee485d8beaf3142f0b29352
parentb9c8e7f2fb6ee19defeaa2927a0af42b525d8b33
refs_ref_iterator_begin(): don't check prefixes redundantly

The backend already correctly restricts its output to references whose
names start with the prefix. By passing the prefix again to
`prefix_ref_iterator`, we were forcing that iterator to do redundant
prefix comparisons. So set it to the empty string.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c