summaryrefslogtreecommitdiff
path: root/Documentation/git-log.txt
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2015-02-21 20:51:28 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-02-22 12:01:37 -0800
commit008d5d005d862d9b0309af94dfc266e3b06bdf6d (patch)
tree39b28e6863a17274972a08d19f99b232fd29e766 /Documentation/git-log.txt
parentconnect: use strcmp() for string comparison (diff)
downloadtgif-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