Skip to content

Commit c721b90

Browse files
committed
Merge branch 'kn/for-each-ref-skip' into next
"git for-each-ref" learns "--skip-until" option to help applications that want to page its output. * kn/for-each-ref-skip: ref-cache: set prefix_state when seeking
2 parents 8d90c5b + 9201261 commit c721b90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

refs/ref-cache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ static int cache_ref_iterator_seek(struct ref_iterator *ref_iterator,
527527
level = &iter->levels[iter->levels_nr++];
528528
level->dir = dir;
529529
level->index = -1;
530+
level->prefix_state = PREFIX_CONTAINS_DIR;
530531
} else {
531532
/* reduce the index so the leaf node is iterated over */
532533
if (cmp <= 0 && !slash)

0 commit comments

Comments
 (0)