Name |
Last commit
|
Last update |
---|---|---|
.. | ||
add.c | ||
addall.c | ||
bypath.c | ||
cache.c | ||
collision.c | ||
conflicts.c | ||
conflicts.h | ||
crlf.c | ||
filemodes.c | ||
inmemory.c | ||
names.c | ||
nsec.c | ||
racy.c | ||
read_index.c | ||
read_tree.c | ||
rename.c | ||
reuc.c | ||
stage.c | ||
tests.c | ||
version.c |
Add the `GIT_OPT_ENABLE_UNSAVED_INDEX_SAFETY` option, which will cause commands that reload the on-disk index to fail if the current `git_index` has changed that have not been saved. This will prevent users from - for example - adding a file to the index then calling a function like `git_checkout` and having that file be silently removed from the index since it was re-read from disk. Now calls that would re-read the index will fail if the index is "dirty", meaning changes have been made to it but have not been written. Users can either `git_index_read` to discard those changes explicitly, or `git_index_write` to write them.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
add.c | Loading commit data... | |
addall.c | Loading commit data... | |
bypath.c | Loading commit data... | |
cache.c | Loading commit data... | |
collision.c | Loading commit data... | |
conflicts.c | Loading commit data... | |
conflicts.h | Loading commit data... | |
crlf.c | Loading commit data... | |
filemodes.c | Loading commit data... | |
inmemory.c | Loading commit data... | |
names.c | Loading commit data... | |
nsec.c | Loading commit data... | |
racy.c | Loading commit data... | |
read_index.c | Loading commit data... | |
read_tree.c | Loading commit data... | |
rename.c | Loading commit data... | |
reuc.c | Loading commit data... | |
stage.c | Loading commit data... | |
tests.c | Loading commit data... | |
version.c | Loading commit data... |