summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorDavid Barr <davidbarr@google.com>2012-06-01 00:41:27 +1000
committerJonathan Nieder <jrnieder@gmail.com>2012-07-05 23:26:52 -0500
commitd8d8708bd6a56818ee3a85007e36a8ff201f9512 (patch)
treefe59fee35148e9ff28e3d6f3eab6d948aacce31e /sha1_file.c
parent4a1613194af218afb99be0e14af449e86852d06e (diff)
downloadgit-d8d8708bd6a56818ee3a85007e36a8ff201f9512.tar.gz
vcs-svn: use constcmp instead of prefixcmp
Since the length of t is already known, we can simplify a little by using memcmp() instead of strncmp() to carry out a prefix comparison. All nearby code already does this. Noticed in the standalone svn-dump-fast-export project which has not needed to implement prefixcmp() yet. Signed-off-by: David Barr <davidbarr@google.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 'sha1_file.c')
0 files changed, 0 insertions, 0 deletions