]> git.ipfire.org Git - thirdparty/git.git/commit - refs/refs-internal.h
ref_iterator_begin_fn(): fix docstring
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 22 May 2017 14:17:33 +0000 (16:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 May 2017 05:29:52 +0000 (14:29 +0900)
commite186057138666058a2c67c3389509c9430d95b24
treeeda0756a9f0981dd7e05c0669f89bdf28f47bc1c
parentfd2ce9c01c91a093fbc8f7e444d4d80c0d89432a
ref_iterator_begin_fn(): fix docstring

The iterator returned by this function only includes references whose
names start with the whole prefix, not all of those in
`find_containing_dir(prefix)` as the old docstring claimed. This
docstring was probably copy-pasted from old ref-cache code, which had
the old specification. But now, `cache_ref_iterator_begin()`
(from which the files reference iterator gets its values)
automatically wraps its output using `prefix_ref_iterator_begin()`
when necessary, so it has the stricter behavior.

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