for-each-ref: use skip_prefix() to avoid duplicate string comparison
authorRené Scharfe <l.s.r@web.de>
Sat, 21 Feb 2015 19:51:28 +0000 (20:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 22 Feb 2015 20:01:37 +0000 (12:01 -0800)
Use skip_prefix() to get the part after "color:" (if present) and only
compare it with "reset" instead of comparing the whole string again.
This gets rid of the duplicate "color:" part of the string constant.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found