summaryrefslogtreecommitdiff
path: root/pretty.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2015-02-21 20:51:28 +0100
committerJunio C Hamano <gitster@pobox.com>2015-02-22 12:01:37 -0800
commit008d5d005d862d9b0309af94dfc266e3b06bdf6d (patch)
tree39b28e6863a17274972a08d19f99b232fd29e766 /pretty.c
parent2ae7f90f263760abd242501471f123632395d7b3 (diff)
downloadgit-008d5d005d862d9b0309af94dfc266e3b06bdf6d.tar.gz
for-each-ref: use skip_prefix() to avoid duplicate string comparison
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>
Diffstat (limited to 'pretty.c')
0 files changed, 0 insertions, 0 deletions