summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-12-23 11:12:31 +0000
committerCarlos Martín Nieto <cmn@dwim.me>2014-05-28 15:40:22 +0200
commit121b26738e6a5e6eadeb2a2bc666956ae21cb92b (patch)
tree9f97b747cf21db85b255ae19b5b86ad768a7ba04 /include/git2
parenta0b5f7854c2302105e1029933df5d94a765cb89f (diff)
downloadlibgit2-121b26738e6a5e6eadeb2a2bc666956ae21cb92b.tar.gz
clone: add flags to override whether to perform a local clone
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/clone.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/git2/clone.h b/include/git2/clone.h
index ceb1a53bb..71e8e72f2 100644
--- a/include/git2/clone.h
+++ b/include/git2/clone.h
@@ -23,6 +23,12 @@
*/
GIT_BEGIN_DECL
+typedef enum {
+ GIT_CLONE_LOCAL_AUTO,
+ GIT_CLONE_LOCAL,
+ GIT_CLONE_NO_LOCAL,
+} git_clone_local_t;
+
/**
* Clone options structure
*
@@ -57,6 +63,7 @@ typedef struct git_clone_options {
int bare;
int ignore_cert_errors;
+ git_clone_local_t local;
const char *remote_name;
const char* checkout_branch;
git_signature *signature;