diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-06-29 11:01:35 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-06-29 11:01:35 +0200 |
| commit | 7376ad99275fee606f298e56ac2652c203f8ebe2 (patch) | |
| tree | ade950f388eb168807eb8e2b2e88ee5015560de9 /include/git2/refs.h | |
| parent | 5f25149e4611597c6fa5150413d7f9bd15dc7222 (diff) | |
| download | libgit2-7376ad99275fee606f298e56ac2652c203f8ebe2.tar.gz | |
refs: Remove duplicate rename method
`git_reference_rename` now takes a `force` flag
Diffstat (limited to 'include/git2/refs.h')
| -rw-r--r-- | include/git2/refs.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h index 384e8e2f8..9cefca780 100644 --- a/include/git2/refs.h +++ b/include/git2/refs.h @@ -195,21 +195,7 @@ GIT_EXTERN(int) git_reference_set_oid(git_reference *ref, const git_oid *id); * and on disk. * */ -GIT_EXTERN(int) git_reference_rename(git_reference *ref, const char *new_name); - -/** - * Rename an existing reference, overwriting an existing one with the - * same name, if it exists. - * - * This method works for both direct and symbolic references. - * The new name will be checked for validity and may be - * modified into a normalized form. - * - * The refernece will be immediately renamed in-memory - * and on disk. - * - */ -GIT_EXTERN(int) git_reference_rename_f(git_reference *ref, const char *new_name); +GIT_EXTERN(int) git_reference_rename(git_reference *ref, const char *new_name, int force); /** * Delete an existing reference |
