diff options
author | Ben Straub <bs@github.com> | 2014-02-04 20:13:50 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2014-02-04 20:27:44 -0800 |
commit | 491cecfe8ce4c6fbee3357248c7b688b6e1aaab4 (patch) | |
tree | 05ce6c4474e668044a8c08225c960f274e58b097 /src/push.c | |
parent | 0adb06065b944e755933e11ed9ac7ce544b55d33 (diff) | |
download | libgit2-491cecfe8ce4c6fbee3357248c7b688b6e1aaab4.tar.gz |
Add reflog parameters to git_push_update_tips
Diffstat (limited to 'src/push.c')
-rw-r--r-- | src/push.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/push.c b/src/push.c index d39a27182..c2947808e 100644 --- a/src/push.c +++ b/src/push.c @@ -194,7 +194,10 @@ int git_push_add_refspec(git_push *push, const char *refspec) return 0; } -int git_push_update_tips(git_push *push) +int git_push_update_tips( + git_push *push, + const git_signature *signature, + const char *reflog_message) { git_buf remote_ref_name = GIT_BUF_INIT; size_t i, j; @@ -241,7 +244,9 @@ int git_push_update_tips(git_push *push) giterr_clear(); else goto on_error; - } else if ((error = git_reference_create(NULL, push->remote->repo, git_buf_cstr(&remote_ref_name), &push_spec->loid, 1, NULL, NULL)) < 0) + } else if ((error = git_reference_create(NULL, push->remote->repo, + git_buf_cstr(&remote_ref_name), &push_spec->loid, 1, signature, + reflog_message ? reflog_message : "update by push")) < 0) goto on_error; } |