summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2013-01-03 15:53:50 -0600
committerEdward Thomson <ethomson@microsoft.com>2013-01-03 15:53:50 -0600
commitad2bc32fa3e6958c2d975838712d6e3552abb838 (patch)
tree2426bf188ae68224a69e518e4b31eddfad92acc0 /src
parent07871d3adcfdaba7ad5f99f89299258d1dbd92f9 (diff)
downloadlibgit2-ad2bc32fa3e6958c2d975838712d6e3552abb838.tar.gz
expose merge metadata cleanup
Diffstat (limited to 'src')
-rw-r--r--src/merge.c2
-rw-r--r--src/merge.h1
-rw-r--r--src/reset.c2
3 files changed, 2 insertions, 3 deletions
diff --git a/src/merge.c b/src/merge.c
index 1386d0908..dfdadca81 100644
--- a/src/merge.c
+++ b/src/merge.c
@@ -15,7 +15,7 @@
#include "git2/reset.h"
#include "commit_list.h"
-int git_merge__cleanup(git_repository *repo)
+int git_repository_merge_cleanup(git_repository *repo)
{
int error = 0;
git_buf merge_head_path = GIT_BUF_INIT,
diff --git a/src/merge.h b/src/merge.h
index 3681e24b7..af24de474 100644
--- a/src/merge.h
+++ b/src/merge.h
@@ -16,7 +16,6 @@
#define MERGE_CONFIG_FILE_MODE 0666
-int git_merge__cleanup(git_repository *repo);
int git_merge__bases_many(git_commit_list **out, git_revwalk *walk, git_commit_list_node *one, git_vector *twos);
#endif
diff --git a/src/reset.c b/src/reset.c
index 17b4b900c..784094a1f 100644
--- a/src/reset.c
+++ b/src/reset.c
@@ -126,7 +126,7 @@ int git_reset(
goto cleanup;
}
- if ((error = git_merge__cleanup(repo)) < 0) {
+ if ((error = git_repository_merge_cleanup(repo)) < 0) {
giterr_set(GITERR_INDEX, "%s - Failed to clean up merge data.", ERROR_MSG);
goto cleanup;
}