summaryrefslogtreecommitdiff
path: root/unpack-trees.c
diff options
context:
space:
mode:
authorThomas Gummerer <t.gummerer@gmail.com>2012-07-06 18:07:30 +0200
committerJunio C Hamano <gitster@pobox.com>2012-07-08 19:49:34 -0700
commit68c4f6a57759233ef4586f27d424721c6c1c0ea7 (patch)
treea746d0dfbae4352f1351e2ce2e4d1b255b9e519d /unpack-trees.c
parent8228a23b35f6bd34a87d4d839d06e7c18ae9e750 (diff)
downloadgit-68c4f6a57759233ef4586f27d424721c6c1c0ea7.tar.gz
Replace strlen() with ce_namelen()
Replace strlen(ce->name) with ce_namelen() in a couple of places which gives us some additional bits of performance. Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.c')
-rw-r--r--unpack-trees.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack-trees.c b/unpack-trees.c
index 33a581924e..29893bf659 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -1296,7 +1296,7 @@ static int verify_clean_subdirectory(struct cache_entry *ce,
* First let's make sure we do not have a local modification
* in that directory.
*/
- namelen = strlen(ce->name);
+ namelen = ce_namelen(ce);
for (i = locate_in_src_index(ce, o);
i < o->src_index->cache_nr;
i++) {