summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 5c01949d2..02b93e099 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -133,9 +133,12 @@ GIT_EXTERN(int) git_remote_connect(git_remote *remote, int direction);
* The remote (or more exactly its transport) must be connected. The
* memory belongs to the remote.
*
+ * If you a return a non-zero value from the callback, this will stop
+ * looping over the refs.
+ *
* @param refs where to store the refs
* @param remote the remote
- * @return 0 or an error code
+ * @return 0 on success, GIT_EUSER on non-zero callback, or error code
*/
GIT_EXTERN(int) git_remote_ls(git_remote *remote, git_headlist_cb list_cb, void *payload);