summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoryuangli <yuangli@mathworks.com>2022-08-02 13:15:22 +0100
committeryuangli <yuangli@mathworks.com>2022-08-02 13:15:22 +0100
commit2d33fe78858354c508afb77d80f32a5a747b801e (patch)
tree1391d47cfcf0f5798ab8705841db47680858a342 /include
parente7294e870398d72b79a436b628170ffcaaa1713c (diff)
downloadlibgit2-2d33fe78858354c508afb77d80f32a5a747b801e.tar.gz
refactor git_fetch_option.depth and usage
Diffstat (limited to 'include')
-rw-r--r--include/git2/remote.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 33f5103ce..f3415d843 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -744,7 +744,9 @@ typedef struct {
git_proxy_options proxy_opts;
/**
- * Depth of the fetch to perform
+ * Depth of the fetch to perform, has to be a positive integer.
+ *
+ * The default is -1, which will fetch the full history.
*/
int depth;