diff options
author | Russell Belfer <rb@github.com> | 2012-11-19 13:40:08 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-11-19 13:40:08 -0800 |
commit | cfeef7ce2ca7747a19d3caffa49cd1fda8af5730 (patch) | |
tree | 7d06f4371259e407ecad5006ace66a93edb27e77 /tests-clar/diff/iterator.c | |
parent | 560cc1e1ed0fb29679c32434490446bb6fd5dc17 (diff) | |
download | libgit2-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