diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-01-15 16:50:31 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-03-03 14:40:50 +0100 |
| commit | 4e498646b6e4f3e6303cd3a27682dcd10d97eaeb (patch) | |
| tree | cab3a87c8845f549d9355a505df665a57ed4f4b3 /include/git2/repository.h | |
| parent | 412a3808889de65d8f94f22502aba10b9afbf755 (diff) | |
| download | libgit2-4e498646b6e4f3e6303cd3a27682dcd10d97eaeb.tar.gz | |
repository: remove log message override for switching the active branch
We want to use the "checkout: moving from ..." message in order to let
git know when a change of branch has happened. Make the convenience
functions for this goal write this message.
Diffstat (limited to 'include/git2/repository.h')
| -rw-r--r-- | include/git2/repository.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h index a08dfcc28..e3ff3b375 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -603,13 +603,11 @@ GIT_EXTERN(int) git_repository_hashfile( * * @param repo Repository pointer * @param refname Canonical name of the reference the HEAD should point at - * @param log_message The one line long message to be appended to the reflog * @return 0 on success, or an error code */ GIT_EXTERN(int) git_repository_set_head( git_repository* repo, - const char* refname, - const char *log_message); + const char* refname); /** * Make the repository HEAD directly point to the Commit. @@ -625,13 +623,11 @@ GIT_EXTERN(int) git_repository_set_head( * * @param repo Repository pointer * @param commitish Object id of the Commit the HEAD should point to - * @param log_message The one line long message to be appended to the reflog * @return 0 on success, or an error code */ GIT_EXTERN(int) git_repository_set_head_detached( git_repository* repo, - const git_oid* commitish, - const char *log_message); + const git_oid* commitish); /** * Detach the HEAD. @@ -647,13 +643,11 @@ GIT_EXTERN(int) git_repository_set_head_detached( * Otherwise, the HEAD will be detached and point to the peeled Commit. * * @param repo Repository pointer - * @param reflog_message The one line long message to be appended to the reflog * @return 0 on success, GIT_EUNBORNBRANCH when HEAD points to a non existing * branch or an error code */ GIT_EXTERN(int) git_repository_detach_head( - git_repository* repo, - const char *reflog_message); + git_repository* repo); /** * Repository state |
