From 4e498646b6e4f3e6303cd3a27682dcd10d97eaeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Thu, 15 Jan 2015 16:50:31 +0100 Subject: 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. --- include/git2/repository.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'include/git2') 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 -- cgit v1.2.1