summaryrefslogtreecommitdiff
path: root/src/revwalk.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-11-14 23:46:21 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2015-11-28 19:21:51 +0100
commit7132150ddf7a883c1f12a89c2518c1a07c0dc94c (patch)
tree32b101251f51b7c1b753c4ef29bd78ddc5181bec /src/revwalk.c
parente0ab1ca0288db57fabbd63dfb6a0cd27f3acf8b2 (diff)
downloadlibgit2-7132150ddf7a883c1f12a89c2518c1a07c0dc94c.tar.gz
tree: avoid advancing over the filename multiple times
We've already looked at the filename with `memchr()` and then used `strlen()` to allocate the entry. We already know how much we have to advance to get to the object id, so add the filename length instead of looking at each byte again.
Diffstat (limited to 'src/revwalk.c')
0 files changed, 0 insertions, 0 deletions