libgit2/tests-clar/checkout
Russell Belfer 4bf630b6ba Make diff and status perform soft index reload
This changes `git_index_read` to have two modes - a hard index
reload that always resets the index to match the on-disk data
(which was the old behavior) and a soft index reload that uses
the timestamp / file size information and only replaces the index
data if the file on disk has been modified.

This then updates the git_status code to do a soft reload unless
the new GIT_STATUS_OPT_NO_REFRESH flag is passed in.

This also changes the behavior of the git_diff functions that use
the index so that when an index is not explicitly passed in (i.e.
when the functions call git_repository_index for you), they will
also do a soft reload for you.

This intentionally breaks the file signature of git_index_read
because there has been some confusion about the behavior previously
and it seems like all existing uses of the API should probably be
examined to select the desired behavior.
2013-11-01 10:20:51 -07:00
..
binaryunicode.c Add cl_repo_set_bool and cleanup tests 2013-03-22 14:27:56 -07:00
checkout_helpers.c Add clar helpers for testing file equality 2013-09-17 09:31:46 -07:00
checkout_helpers.h Add clar helpers for testing file equality 2013-09-17 09:31:46 -07:00
conflict.c clar: Fix warnings in GCC/Linux 2013-11-01 17:36:09 +01:00
crlf.c More filtering tests including order 2013-09-17 09:31:46 -07:00
head.c Make diff and status perform soft index reload 2013-11-01 10:20:51 -07:00
index.c More cleanups to remove WIN assumptions 2013-10-03 15:16:06 -07:00
tree.c Prevent checkout_tree when conflicts exist, clear NAME on checkout tree 2013-10-16 16:20:08 -04:00
typechange.c use a longer string for dummy data in test to avoid conflicting w/ index 2013-04-17 17:21:17 -05:00