summaryrefslogtreecommitdiff
path: root/tests-clar/diff/iterator.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-11-19 13:40:08 -0800
committerRussell Belfer <rb@github.com>2012-11-19 13:40:08 -0800
commitcfeef7ce2ca7747a19d3caffa49cd1fda8af5730 (patch)
tree7d06f4371259e407ecad5006ace66a93edb27e77 /tests-clar/diff/iterator.c
parent560cc1e1ed0fb29679c32434490446bb6fd5dc17 (diff)
downloadlibgit2-cfeef7ce2ca7747a19d3caffa49cd1fda8af5730.tar.gz
Minor optimization to tree entry validity check
This checks for a leading '.' before looking for the invalid tree entry names. Even on pretty high levels of optimization, this seems to make a measurable improvement. I accidentally used && in the check initially instead of || and while debugging ended up improving the error reporting of issues with adding tree entries. I thought I'd leave those changes, too.
Diffstat (limited to 'tests-clar/diff/iterator.c')
0 files changed, 0 insertions, 0 deletions