summaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
authorLibravatar René Scharfe <rene.scharfe@lsrfire.ath.cx>2013-01-16 02:08:16 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-01-16 09:48:36 -0800
commitc971ddfdcd319fb5cad95aa7047c54ebe6a22d1a (patch)
tree0a0719639eac07c63af594fb9bc138a2e25a7999 /git-gui
parentrefs: do not create ref_entry when searching (diff)
downloadtgif-c971ddfdcd319fb5cad95aa7047c54ebe6a22d1a.tar.xz
refs: use strncmp() instead of strlen() and memcmp()
Simplify ref_entry_cmp_sslice() by using strncmp() to compare the length-limited key and a NUL-terminated entry. While we're at it, retain the const attribute of the input pointers. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui')
0 files changed, 0 insertions, 0 deletions