diff options
author | René Scharfe <l.s.r@web.de> | 2015-02-21 20:51:28 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-02-22 12:01:37 -0800 |
commit | 008d5d005d862d9b0309af94dfc266e3b06bdf6d (patch) | |
tree | 39b28e6863a17274972a08d19f99b232fd29e766 /Documentation/git-log.txt | |
parent | connect: use strcmp() for string comparison (diff) | |
download | tgif-008d5d005d862d9b0309af94dfc266e3b06bdf6d.tar.xz |
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 'Documentation/git-log.txt')
0 files changed, 0 insertions, 0 deletions