Added clean_state_files

This commit is contained in:
vtemian
2014-07-09 16:39:34 +03:00
parent 7e41bd4af3
commit 02fd05baae
2 changed files with 4 additions and 0 deletions

View File

@@ -114,6 +114,7 @@ int git_remote_create(
git_repository *repo, git_repository *repo,
const char *name, const char *name,
const char *url); const char *url);
int git_repository_state_cleanup(git_repository *repo);
const char * git_remote_name(const git_remote *remote); const char * git_remote_name(const git_remote *remote);

View File

@@ -299,3 +299,6 @@ class Repository(_Repository):
raise NotImplementedError('git_diff_blob_to_blob()') raise NotImplementedError('git_diff_blob_to_blob()')
raise ValueError("Only blobs and treeish can be diffed") raise ValueError("Only blobs and treeish can be diffed")
def clean_state_files(self):
C.git_repository_state_cleanup(self._repo)