libgit2/include/git2
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
..
sys Fix saving remotes with several fetch/push ref specs. 2013-11-01 00:08:52 +01:00
attr.h Fixed most documentation header bugs 2013-06-24 15:33:41 +02:00
blob.h Merge git_buf and git_buffer 2013-09-17 09:31:45 -07:00
branch.h Fix documentation of git_branch_delete. 2013-05-26 17:29:00 +02:00
buffer.h Port tests from PR 1683 2013-09-17 09:31:45 -07:00
checkout.h checkout (from index) can write conflicts 2013-10-16 16:20:06 -04:00
clone.h clone: put the callbacks struct directly in the clone options 2013-10-02 14:04:44 +02:00
commit.h commit: Introduce git_commit_message_raw() 2013-10-03 07:59:55 +02:00
common.h Fix typo in documentation 2013-09-22 09:38:51 +08:00
config.h Fix saving remotes with several fetch/push ref specs. 2013-11-01 00:08:52 +01:00
cred_helpers.h fixing headers with bad values for objective-c 2013-09-09 13:53:22 -04:00
diff.h Make diff and status perform soft index reload 2013-11-01 10:20:51 -07:00
errors.h Add attributes to filters and fix registry 2013-09-17 09:31:44 -07:00
filter.h Merge git_buf and git_buffer 2013-09-17 09:31:45 -07:00
graph.h graph: make the ahead-behind docs clearer 2013-03-22 20:27:59 +01:00
ignore.h update copyrights 2013-01-08 17:31:27 -06:00
index.h Make diff and status perform soft index reload 2013-11-01 10:20:51 -07:00
indexer.h indexer: remove the stream infix 2013-10-30 15:00:05 +01:00
inttypes.h Unify whitespaces to tabs 2013-05-15 20:26:55 +08:00
merge.h merge: reverse array and length parameter order 2013-09-22 05:59:35 +02:00
message.h update copyrights 2013-01-08 17:31:27 -06:00
net.h No bitfields in public headers b/c packing is compiler-specific 2013-02-07 12:47:29 -05:00
notes.h Clean up some documentation 2013-07-23 09:40:19 +02:00
object.h Fixes return type documentation 2013-07-14 18:08:54 -04:00
odb_backend.h indexer: remove the stream infix 2013-10-30 15:00:05 +01:00
odb.h Implement git_odb_object_dup 2013-10-22 16:06:12 +02:00
oid.h Merge pull request #1820 from linquize/git_oid_streq 2013-09-01 08:40:48 -07:00
pack.h Support cancellation in push operation 2013-10-02 15:12:44 -04:00
patch.h Create git_diff_line and extend git_diff_hunk 2013-10-21 13:42:42 -07:00
pathspec.h Rename diff objects and split patch.h 2013-10-11 14:51:54 -07:00
push.h Support cancellation in push operation 2013-10-02 15:12:44 -04:00
refdb.h Move git_reference__alloc to include/git2/sys 2013-04-21 12:52:17 -07:00
reflog.h reflog: add a convenience append function 2013-10-02 06:53:24 +02:00
refs.h Make reference lookups apply precomposeunicode 2013-10-08 16:35:57 -07:00
refspec.h Fixed most documentation header bugs 2013-06-24 15:33:41 +02:00
remote.h Remove leftover function declaration 2013-10-30 15:15:54 +01:00
repository.h Make reference lookups apply precomposeunicode 2013-10-08 16:35:57 -07:00
reset.h Unify whitespaces to tabs 2013-05-15 20:26:55 +08:00
revparse.h Some documentation improvements 2013-08-28 09:31:32 -07:00
revwalk.h revwalk: allow simplifying by first-parent 2013-09-09 20:31:14 +02:00
signature.h Add new git_signature_default API using config 2013-08-16 15:04:15 -07:00
stash.h Make the git_signature const in the stash API. 2013-07-09 12:52:25 +02:00
status.h Make diff and status perform soft index reload 2013-11-01 10:20:51 -07:00
stdint.h msvc: Properly handle inttypes.h/stdint.h 2011-10-05 16:21:16 -04:00
strarray.h Unify whitespaces to tabs 2013-05-15 20:26:55 +08:00
submodule.h Update submodule documentation 2013-08-05 10:53:39 -07:00
tag.h tag: Introduce git_tag_annotation_create() 2013-05-21 19:32:59 +02:00
threads.h update copyrights 2013-01-08 17:31:27 -06:00
trace.h Fix trailing whitespaces 2013-05-15 22:41:30 +02:00
transport.h Merge pull request #1904 from libgit2/cmn/ssh-naming 2013-10-28 07:04:58 -07:00
tree.h tree: allow retrieval of raw attributes 2013-10-08 10:07:31 +02:00
types.h indexer: include the delta stats 2013-10-23 15:08:18 +02:00
version.h libgit2 v0.19.0 "gut merge" 2013-06-25 00:14:45 +02:00