]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
do_for_each_ref(): only iterate over the subtree that was requested
authorMichael Haggerty <mhagger@alum.mit.edu>
Tue, 10 Apr 2012 05:30:27 +0000 (07:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Apr 2012 22:55:55 +0000 (15:55 -0700)
commit933ac036d29e65e1b3d71332d9ade8edd1e8a89b
tree60c744f379c82dc8b82801efca5d07bce081de21
parent432ad41e60cedb87ceec446ab034d46a53f5f9d8
do_for_each_ref(): only iterate over the subtree that was requested

If the base argument has a "/" chararacter, then only iterate over the
reference subdir whose name is the part up to the last "/".

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