summaryrefslogtreecommitdiff
path: root/include/git2/index.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2013-03-04 17:40:48 -0600
committerEdward Thomson <ethomson@microsoft.com>2013-03-04 18:10:57 -0600
commit5bddabcca580377e50e4844544b0d969ea248683 (patch)
tree65f139198d6f3fc4e1785b0d84d9298e06fbf2f2 /include/git2/index.h
parent323bb88514347ebb7a1d760490384b305f4f4d92 (diff)
downloadlibgit2-5bddabcca580377e50e4844544b0d969ea248683.tar.gz
clear REUC on checkout
Diffstat (limited to 'include/git2/index.h')
-rw-r--r--include/git2/index.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/index.h b/include/git2/index.h
index da95ee9bd..3d4bd15a8 100644
--- a/include/git2/index.h
+++ b/include/git2/index.h
@@ -564,6 +564,14 @@ GIT_EXTERN(int) git_index_reuc_add(git_index *index, const char *path,
*/
GIT_EXTERN(int) git_index_reuc_remove(git_index *index, size_t n);
+/**
+ * Remove all resolve undo entries from the index
+ *
+ * @param index an existing index object
+ * @return 0 or an error code
+ */
+GIT_EXTERN(void) git_index_reuc_clear(git_index *index);
+
/**@}*/
/** @} */