diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-01-14 15:33:29 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-02-05 12:07:56 +0100 |
commit | 5d96fe8828505db852671175d5895dfd275f3d06 (patch) | |
tree | 947f3d4f070248e067dcf3988b984ecfa325c15a /include/git2/refs.h | |
parent | 9b148098e6802f9dd797471fc4f20cfc58a846b4 (diff) | |
download | libgit2-5d96fe8828505db852671175d5895dfd275f3d06.tar.gz |
refs: changes from feedback
Change the name to _matching() intead of _if(), and force _set_target()
to be a conditional update. If the user doesn't care about the old
value, they should use git_reference_create().
Diffstat (limited to 'include/git2/refs.h')
-rw-r--r-- | include/git2/refs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h index 296fcb67d..72622948b 100644 --- a/include/git2/refs.h +++ b/include/git2/refs.h @@ -184,7 +184,7 @@ GIT_EXTERN(int) git_reference_create(git_reference **out, git_repository *repo, * @param old_id The old value which the reference should have * @return 0 on success, GIT_EEXISTS, GIT_EINVALIDSPEC or an error code */ -GIT_EXTERN(int) git_reference_create_if(git_reference **out, git_repository *repo, const char *name, const git_oid *id, int force, const git_signature *signature, const char *log_message, const git_oid *old_id); +GIT_EXTERN(int) git_reference_create_matching(git_reference **out, git_repository *repo, const char *name, const git_oid *id, int force, const git_signature *signature, const char *log_message, const git_oid *old_id); /** * Get the OID pointed to by a direct reference. |