libgit2/tests-clar/diff
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
..
blob.c Create git_diff_line and extend git_diff_hunk 2013-10-21 13:42:42 -07:00
diff_helpers.c Make diff and status perform soft index reload 2013-11-01 10:20:51 -07:00
diff_helpers.h Create git_diff_line and extend git_diff_hunk 2013-10-21 13:42:42 -07:00
diffiter.c Create git_diff_line and extend git_diff_hunk 2013-10-21 13:42:42 -07:00
drivers.c Diff API cleanup 2013-10-15 15:10:07 -07:00
index.c Rename diff objects and split patch.h 2013-10-11 14:51:54 -07:00
iterator.c Make iterators use GIT_ITEROVER & smart advance 2013-05-31 12:18:43 -07:00
notify.c Rename diff objects and split patch.h 2013-10-11 14:51:54 -07:00
patch.c Create git_diff_line and extend git_diff_hunk 2013-10-21 13:42:42 -07:00
pathspec.c Rename diff objects and split patch.h 2013-10-11 14:51:54 -07:00
rename.c Diff API cleanup 2013-10-15 15:10:07 -07:00
submodules.c Diff API cleanup 2013-10-15 15:10:07 -07:00
tree.c Create git_diff_line and extend git_diff_hunk 2013-10-21 13:42:42 -07:00
workdir.c Make diff and status perform soft index reload 2013-11-01 10:20:51 -07:00