for-each-ref: Allow a trailing slash in the patterns
commit114ef90854c395145594974c222a004060b2acd1
authorBjörn Steinbrink <B.Steinbrink@gmx.de>
Thu, 28 Aug 2008 02:14:02 +0000 (28 04:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Aug 2008 07:14:06 +0000 (29 00:14 -0700)
tree7e81f878397b29a9d1f5e9d44b26a6766766e0f8
parentc67b1fa349cc7b4341b32b9ef1c58a3821ce0830
for-each-ref: Allow a trailing slash in the patterns

More often than not, I end up using something like refs/remotes/ as the
pattern for for-each-ref, but that doesn't work, because it expects to see
the slash in the ref name right after the matched pattern. So teach it to
accept the slash as the final character in the pattern as well.

Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-for-each-ref.c