diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-01-07 12:23:05 +0000 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-03-03 14:40:50 +0100 |
commit | 659cf2029f322ea876d663d85783b48945227e8f (patch) | |
tree | 435e9185c38d96656e21db83fc736b5294499b10 /src/push.c | |
parent | 99b68a2aecfaa24f252f265d61b230b8e2576dd2 (diff) | |
download | libgit2-659cf2029f322ea876d663d85783b48945227e8f.tar.gz |
Remove the signature from ref-modifying functions
The signature for the reflog is not something which changes
dynamically. Almost all uses will be NULL, since we want for the
repository's default identity to be used, making it noise.
In order to allow for changing the identity, we instead provide
git_repository_set_ident() and git_repository_ident() which allow a user
to override the choice of signature.
Diffstat (limited to 'src/push.c')
-rw-r--r-- | src/push.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/push.c b/src/push.c index fb51383cb..8b3d38e70 100644 --- a/src/push.c +++ b/src/push.c @@ -169,7 +169,6 @@ int git_push_add_refspec(git_push *push, const char *refspec) int git_push_update_tips( git_push *push, - const git_signature *signature, const char *reflog_message) { git_buf remote_ref_name = GIT_BUF_INIT; @@ -213,7 +212,7 @@ int git_push_update_tips( } } else { error = git_reference_create(NULL, push->remote->repo, - git_buf_cstr(&remote_ref_name), &push_spec->loid, 1, signature, + git_buf_cstr(&remote_ref_name), &push_spec->loid, 1, reflog_message ? reflog_message : "update by push"); } } |