summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-04-28 14:16:26 -0700
committerRussell Belfer <rb@github.com>2014-05-02 09:21:32 -0700
commit8ef4e11a76599111b98682d235e7a4df921b2597 (patch)
treebf6bfa00b776587e85d7cd3d3244d1e3a9778a0b /include/git2
parent240f4af321612a0fe4cf01aed75a8cb44173feb8 (diff)
downloadlibgit2-8ef4e11a76599111b98682d235e7a4df921b2597.tar.gz
Skip diff oid calc when size definitely changed
When we think the stat cache in the index seems valid and the size or mode of a file has definitely changed, then don't bother trying to recalculate the OID of the workdir bits to confirm that it is modified - just accept that it is modified. This can result in files that show as modified with no actual diff, but the behavior actually appears to match Git on the command line. This also includes a minor optimization to not perform a submodule lookup on the ".git" directory itself.
Diffstat (limited to 'include/git2')
0 files changed, 0 insertions, 0 deletions