libgit2/tests-clar/status
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
..
ignore.c Improve building ignore file lists 2013-08-09 11:41:41 -07:00
renames.c Case sensitivity issues on Linux 2013-10-08 14:41:32 -07:00
single.c Fix error hashing empty file. 2012-09-27 13:12:27 -04:00
status_data.h Add checkout test for long file name 2013-08-07 11:55:47 -07:00
status_helpers.c Add status flags to force output sort order 2013-06-20 12:16:06 -07:00
status_helpers.h Add status flags to force output sort order 2013-06-20 12:16:06 -07:00
submodules.c Rearrange clar submodule cleanup code 2013-09-17 09:31:45 -07:00
worktree_init.c Move some low-level repo fns to include/git2/sys 2013-04-21 11:50:56 -07:00
worktree.c Make diff and status perform soft index reload 2013-11-01 10:20:51 -07:00