summaryrefslogtreecommitdiff
path: root/block-sha1/sha1.h
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2013-11-04 21:42:49 +0100
committerJunio C Hamano <gitster@pobox.com>2013-11-04 14:03:49 -0800
commitd2e146d8d7052b8482859e64daf2b86c019531f8 (patch)
tree6c51e1c42cca8d7dffdd741103197f54d8ccab7e /block-sha1/sha1.h
parent42817b96b1b80b56fd5a4d5e0d6239524b1832a3 (diff)
downloadgit-d2e146d8d7052b8482859e64daf2b86c019531f8.tar.gz
builtin/remote: remove postfixcmp() and use suffixcmp() instead
Commit 8cc5b290 (git merge -X<option>, 25 Nov 2009) introduced suffixcmp() with nearly the same implementation as postfixcmp() that already existed since commit 211c8968 (Make git-remote a builtin, 29 Feb 2008). The only difference between the two implementations is that, when the string is smaller than the suffix, one implementation returns 1 while the other one returns -1. But, as postfixcmp() is only used to compare for equality, the distinction does not matter and does not affect the correctness of this patch. As postfixcmp() has always been static in builtin/remote.c and is used nowhere else, it makes more sense to remove it and use suffixcmp() instead in builtin/remote.c, rather than to remove suffixcmp(). Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'block-sha1/sha1.h')
0 files changed, 0 insertions, 0 deletions