diff options
| author | Thomas Gummerer <t.gummerer@gmail.com> | 2012-07-06 18:07:30 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2012-07-08 19:49:34 -0700 |
| commit | 68c4f6a57759233ef4586f27d424721c6c1c0ea7 (patch) | |
| tree | a746d0dfbae4352f1351e2ce2e4d1b255b9e519d /unpack-trees.c | |
| parent | Fourth batch for 1.7.12 (diff) | |
| download | git-68c4f6a57759233ef4586f27d424721c6c1c0ea7.tar.gz git-68c4f6a57759233ef4586f27d424721c6c1c0ea7.zip | |
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 '')
| -rw-r--r-- | unpack-trees.c | 2 |
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++) { |
