File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,18 @@ v0.27 + 1
1616* You can now swap out memory allocators via the
1717 ` GIT_OPT_SET_ALLOCATOR ` option with ` git_libgit2_opts() ` .
1818
19+ * You can now ensure that functions do not discard unwritten changes to the
20+ index via the ` GIT_OPT_ENABLE_UNSAVED_INDEX_SAFETY ` option to
21+ ` git_libgit2_opts() ` . This will cause functions that implicitly re-read
22+ the index (eg, ` git_checkout ` ) to fail if you have staged changes to the
23+ index but you have not written the index to disk. (Unless the checkout
24+ has the FORCE flag specified.)
25+
26+ At present, this defaults to off, but we intend to enable this more
27+ broadly in the future, as a warning or error. We encourage you to
28+ examine your code to ensure that you are not relying on the current
29+ behavior that implicitly removes staged changes.
30+
1931### API removals
2032
2133### Breaking API changes
You can’t perform that action at this time.
0 commit comments