summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorEtienne Samson <samson.etienne@gmail.com>2018-06-20 02:27:12 +0200
committerEtienne Samson <samson.etienne@gmail.com>2018-11-02 14:58:12 +0100
commitfdb116b364c59d1e3692441963ec47616c71b3db (patch)
treed9a0e5192a96ac7dd4b26fb2ab3735a54e968198 /include/git2
parent3cbaebdf7dac02b193f3416937c9cdb2e244f50b (diff)
downloadlibgit2-fdb116b364c59d1e3692441963ec47616c71b3db.tar.gz
remote: add a creation flag for ignoring url.insteadOf
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/remote.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index b39d081d5..7962f075d 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -42,6 +42,14 @@ GIT_EXTERN(int) git_remote_create(
const char *url);
/**
+ * Remote creation options flags
+ */
+typedef enum {
+ /** Ignore the repository apply.insteadOf configuration */
+ GIT_REMOTE_CREATE_SKIP_INSTEADOF = (1 << 0),
+} git_remote_create_flags;
+
+/**
* Remote creation options structure
*
* Initialize with `GIT_REMOTE_CREATE_OPTIONS_INIT`. Alternatively, you can
@@ -65,6 +73,9 @@ typedef struct git_remote_create_options {
/** The fetchspec the remote should use. */
const char *fetchspec;
+
+ /** Additional flags for the remote. See git_remote_create_flags. */
+ unsigned int flags;
} git_remote_create_options;
#define GIT_REMOTE_CREATE_OPTIONS_VERSION 1