summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorEtienne Samson <samson.etienne@gmail.com>2018-06-20 02:27:14 +0200
committerEtienne Samson <samson.etienne@gmail.com>2018-11-02 14:58:12 +0100
commitd365029406087471fda7cbf7bda68e8453200494 (patch)
tree836ae8e6a8dd6b5788a7832bfbe18647184eafdf /include/git2
parentfdb116b364c59d1e3692441963ec47616c71b3db (diff)
downloadlibgit2-d365029406087471fda7cbf7bda68e8453200494.tar.gz
remote: add a flag to prevent generation of the default fetchspec
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/remote.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 7962f075d..3e8292fe4 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -47,6 +47,9 @@ GIT_EXTERN(int) git_remote_create(
typedef enum {
/** Ignore the repository apply.insteadOf configuration */
GIT_REMOTE_CREATE_SKIP_INSTEADOF = (1 << 0),
+
+ /** Don't build a fetchspec from the name if none is set */
+ GIT_REMOTE_CREATE_SKIP_DEFAULT_FETCHSPEC = (1 << 1),
} git_remote_create_flags;
/**