diff options
author | Vicent Marti <vicent@github.com> | 2014-01-31 09:46:40 -0800 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-01-31 09:46:40 -0800 |
commit | f9500b4524c62a2f443061bacea8171b435230f6 (patch) | |
tree | 104e0fadb7103e10ea2bf7a6376214d504a773da /include/git2/branch.h | |
parent | 8646b0a0689c89d9cad949754885ec542b4d0ce1 (diff) | |
parent | db092c1955ff5079d8ca475bbe1d6b0da782b38e (diff) | |
download | libgit2-f9500b4524c62a2f443061bacea8171b435230f6.tar.gz |
Merge pull request #2081 from libgit2/bs/reflog
Reflog completionism
Diffstat (limited to 'include/git2/branch.h')
-rw-r--r-- | include/git2/branch.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/include/git2/branch.h b/include/git2/branch.h index 851de290a..46aef3206 100644 --- a/include/git2/branch.h +++ b/include/git2/branch.h @@ -43,6 +43,12 @@ GIT_BEGIN_DECL * * @param force Overwrite existing branch. * + * @param signature The identity that will used to populate the reflog entry + * + * @param log_message The one line long message to be appended to the reflog. + * If NULL, the default is "Branch: created"; if you want something more + * useful, provide a message. + * * @return 0, GIT_EINVALIDSPEC or an error code. * A proper reference is written in the refs/heads namespace * pointing to the provided target commit. @@ -52,7 +58,9 @@ GIT_EXTERN(int) git_branch_create( git_repository *repo, const char *branch_name, const git_commit *target, - int force); + int force, + const git_signature *signature, + const char *log_message); /** * Delete an existing branch reference. @@ -115,13 +123,19 @@ GIT_EXTERN(void) git_branch_iterator_free(git_branch_iterator *iter); * * @param force Overwrite existing branch. * + * @param signature The identity that will used to populate the reflog entry + * + * @param log_message The one line long message to be appended to the reflog + * * @return 0 on success, GIT_EINVALIDSPEC or an error code. */ GIT_EXTERN(int) git_branch_move( git_reference **out, git_reference *branch, const char *new_branch_name, - int force); + int force, + const git_signature *signature, + const char *log_message); /** * Lookup a branch by its name in a repository. |