for-each-ref: skip and warn about broken ref names
commit971c41c71728d057115b105f427202f98565f933
authorRonnie Sahlberg <sahlberg@google.com>
Fri, 5 Sep 2014 21:35:17 +0000 (5 14:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Oct 2014 17:47:26 +0000 (15 10:47 -0700)
tree77f2f765b39e8ad922305c6785c730074d54409c
parentd0f810f0bc0d6b51722b400f70c2590713f168e8
for-each-ref: skip and warn about broken ref names

Print a warning message for any bad ref names we find in the repo and
skip them so callers don't have to deal with parsing them.

It might be useful in the future to have a flag where we would not
skip these refs for those callers that want to and are prepared (for
example by using a --format argument with %0 as a delimiter after the
ref name).

Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/for-each-ref.c