summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2014-02-04 20:38:13 -0800
committerBen Straub <bs@github.com>2014-02-04 20:38:13 -0800
commitc3ab1e5af4c43d1031969fbb12c559a55c5baf05 (patch)
treedaa3c47ca9e638f284b7563d7b9eda065f1a2808 /include/git2
parent491cecfe8ce4c6fbee3357248c7b688b6e1aaab4 (diff)
downloadlibgit2-c3ab1e5af4c43d1031969fbb12c559a55c5baf05.tar.gz
Add reflog parameters to remote apis
Also added a test for git_remote_fetch.
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/remote.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index eba6ca7f9..dff913295 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -355,9 +355,15 @@ GIT_EXTERN(void) git_remote_free(git_remote *remote);
* Update the tips to the new state
*
* @param remote the remote to update
+ * @param signature The identity to use when updating reflogs
+ * @param reflog_message The message to insert into the reflogs. If NULL, the
+ * default is "fetch"
* @return 0 or an error code
*/
-GIT_EXTERN(int) git_remote_update_tips(git_remote *remote);
+GIT_EXTERN(int) git_remote_update_tips(
+ git_remote *remote,
+ const git_signature *signature,
+ const char *reflog_message);
/**
* Download new data and update tips
@@ -366,9 +372,15 @@ GIT_EXTERN(int) git_remote_update_tips(git_remote *remote);
* disconnect and update the remote-tracking branches.
*
* @param remote the remote to fetch from
+ * @param signature The identity to use when updating reflogs
+ * @param reflog_message The message to insert into the reflogs. If NULL, the
+ * default is "fetch"
* @return 0 or an error code
*/
-GIT_EXTERN(int) git_remote_fetch(git_remote *remote);
+GIT_EXTERN(int) git_remote_fetch(
+ git_remote *remote,
+ const git_signature *signature,
+ const char *reflog_message);
/**
* Return whether a string is a valid remote URL