libgit2/tests/diff
Russell Belfer 8ef4e11a76 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.
2014-05-02 09:21:32 -07:00
..
binary.c patch: emit binary patches (optionally) 2014-04-22 19:08:21 -05:00
blob.c Add buffer to buffer diff and patch APIs 2014-02-27 14:13:22 -08:00
diff_helpers.c Add public diff print helpers 2014-04-17 14:43:45 -07:00
diff_helpers.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
diffiter.c Drop git_patch_to_str 2014-01-22 17:51:32 +01:00
drivers.c Update Javascript userdiff driver and tests 2014-01-27 11:45:06 -08:00
format_email.c Use git_diff_get_stats in example/diff + refactor 2014-04-22 12:33:27 -07:00
index.c Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
iterator.c Index locking and entry allocation changes 2014-04-17 14:43:45 -07:00
notify.c More improvements to callback return value tests 2013-12-11 11:55:00 -08:00
patch.c patch: emit binary patches (optionally) 2014-04-22 19:08:21 -05:00
pathspec.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
rename.c git_checkout_opts -> git_checkout_options 2014-03-06 09:44:51 -08:00
stats.c Use git_diff_get_stats in example/diff + refactor 2014-04-22 12:33:27 -07:00
submodules.c Remove most submodule reloads from tests 2014-04-01 13:24:06 -07:00
tree.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
workdir.c Skip diff oid calc when size definitely changed 2014-05-02 09:21:32 -07:00