diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-01-07 14:47:02 +0000 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-03-03 14:40:50 +0100 |
| commit | 6bfb990dc74c3749b356f82f7c9744b43fe90ea9 (patch) | |
| tree | 7b9acea4318400e209ce25ffed64df2e5b8ee654 /include/git2/branch.h | |
| parent | 23a17803b6e3a8bf21f740726ec0a038968da9a1 (diff) | |
| download | libgit2-6bfb990dc74c3749b356f82f7c9744b43fe90ea9.tar.gz | |
branch: don't accept a reflog message override
This namespace is about behaving like git's branch command, so let's do
exactly that instead of taking a reflog message.
This override is still available via the reference namespace.
Diffstat (limited to 'include/git2/branch.h')
| -rw-r--r-- | include/git2/branch.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/git2/branch.h b/include/git2/branch.h index e45a36453..06f4d2c68 100644 --- a/include/git2/branch.h +++ b/include/git2/branch.h @@ -43,10 +43,6 @@ GIT_BEGIN_DECL * * @param force Overwrite existing branch. * - * @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. @@ -56,8 +52,7 @@ GIT_EXTERN(int) git_branch_create( git_repository *repo, const char *branch_name, const git_commit *target, - int force, - const char *log_message); + int force); /** * Delete an existing branch reference. @@ -120,16 +115,13 @@ GIT_EXTERN(void) git_branch_iterator_free(git_branch_iterator *iter); * * @param force Overwrite existing branch. * - * @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, - const char *log_message); + int force); /** * Lookup a branch by its name in a repository. |
