libgit2/tests-clar/index
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
..
addall.c Make diff and status perform soft index reload 2013-11-01 10:20:51 -07:00
conflicts.c introduce git_conflict_iterator 2013-05-17 16:10:48 -05:00
filemodes.c More filemode cleanups for FAT on MacOS 2013-10-08 12:45:43 -07:00
inmemory.c add an index_remove_bypath that removes conflicts, renamed add_from_workdir to match 2013-01-12 13:47:56 -06:00
names.c Make diff and status perform soft index reload 2013-11-01 10:20:51 -07:00
read_tree.c add an index_remove_bypath that removes conflicts, renamed add_from_workdir to match 2013-01-12 13:47:56 -06:00
rename.c Vector improvements and their fallout 2013-01-27 14:17:07 -05:00
reuc.c Make diff and status perform soft index reload 2013-11-01 10:20:51 -07:00
stage.c Vector improvements and their fallout 2013-01-27 14:17:07 -05:00
tests.c Make diff and status perform soft index reload 2013-11-01 10:20:51 -07:00