summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-06-22 19:21:22 +0900
committerEdward Thomson <ethomson@edwardthomson.com>2018-06-29 14:54:29 +0100
commit243d40df2357620b7fb0c4d10f10d5bf7b67e647 (patch)
tree097fb44b48b134f861f57b1d66b8bfbc5e5483b8
parentbfa1f02292d1b637928fe18663a5f2d0aa993400 (diff)
downloadlibgit2-ethomson/index_dirty.tar.gz
docs: add unsaved index safety to changelogethomson/index_dirty
-rw-r--r--docs/changelog.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/changelog.md b/docs/changelog.md
index 057d39570..bc31a86e1 100644
--- a/docs/changelog.md
+++ b/docs/changelog.md
@@ -16,6 +16,18 @@ v0.27 + 1
* You can now swap out memory allocators via the
`GIT_OPT_SET_ALLOCATOR` option with `git_libgit2_opts()`.
+* You can now ensure that functions do not discard unwritten changes to the
+ index via the `GIT_OPT_ENABLE_UNSAVED_INDEX_SAFETY` option to
+ `git_libgit2_opts()`. This will cause functions that implicitly re-read
+ the index (eg, `git_checkout`) to fail if you have staged changes to the
+ index but you have not written the index to disk. (Unless the checkout
+ has the FORCE flag specified.)
+
+ At present, this defaults to off, but we intend to enable this more
+ broadly in the future, as a warning or error. We encourage you to
+ examine your code to ensure that you are not relying on the current
+ behavior that implicitly removes staged changes.
+
### API removals
### Breaking API changes