diff options
| author | Ben Straub <bs@github.com> | 2014-02-03 15:05:55 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2014-02-03 15:05:55 -0800 |
| commit | 586be3b889c2f8955630da14b6a703cccc340d47 (patch) | |
| tree | bb72ec4b58abfe5ae4c035ab67f7f6aa17d736bd /include/git2 | |
| parent | 0d847a31598a933877d94430b2fe80bade55fe1a (diff) | |
| download | libgit2-586be3b889c2f8955630da14b6a703cccc340d47.tar.gz | |
Add reflog parameters to git_reset
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/reset.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/git2/reset.h b/include/git2/reset.h index c36781722..1759cc036 100644 --- a/include/git2/reset.h +++ b/include/git2/reset.h @@ -48,10 +48,21 @@ typedef enum { * * @param reset_type Kind of reset operation to perform. * + * @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. + * The reflog is only updated if the affected direct reference is actually + * changing. If NULL, the default is "reset: moving"; if you want something more + * useful, provide a message. + * * @return 0 on success or an error code */ GIT_EXTERN(int) git_reset( - git_repository *repo, git_object *target, git_reset_t reset_type); + git_repository *repo, + git_object *target, + git_reset_t reset_type, + git_signature *signature, + const char *log_message); /** * Updates some entries in the index from the target commit tree. |
