From 121b26738e6a5e6eadeb2a2bc666956ae21cb92b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Mon, 23 Dec 2013 11:12:31 +0000 Subject: clone: add flags to override whether to perform a local clone --- include/git2/clone.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/git2') 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; -- cgit v1.2.1