diff options
| author | Arthur Schreiber <schreiber.arthur@googlemail.com> | 2014-10-10 13:17:53 +0200 |
|---|---|---|
| committer | Arthur Schreiber <schreiber.arthur@googlemail.com> | 2014-10-10 13:17:53 +0200 |
| commit | 8e398e4c84a4d02f2ee340590a0e6880277d210d (patch) | |
| tree | 9d3742f6220538e1d2ef25825a4408ca6665986e /include/git2 | |
| parent | 46a2b8e855d5f6d8b60b81500a9f6779c7f63e63 (diff) | |
| download | libgit2-8e398e4c84a4d02f2ee340590a0e6880277d210d.tar.gz | |
Treat an empty list of refspecs the same as a NULL value.
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/remote.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index b714d3469..422c93d38 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -308,7 +308,7 @@ GIT_EXTERN(int) git_remote_ls(const git_remote_head ***out, size_t *size, git_r * * @param remote the remote * @param refspecs the refspecs to use for this negotiation and - * download. Use NULL to use the base refspecs + * download. Use NULL or an empty array to use the base refspecs * @return 0 or an error code */ GIT_EXTERN(int) git_remote_download(git_remote *remote, const git_strarray *refspecs); @@ -376,8 +376,8 @@ GIT_EXTERN(int) git_remote_update_tips( * disconnect and update the remote-tracking branches. * * @param remote the remote to fetch from - * @param refspecs the refspecs to use for this fetch. Pass NULL to - * use the base refspecs. + * @param refspecs the refspecs to use for this fetch. Pass NULL or an + * empty array to use the base refspecs. * @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" |
