summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2017-01-21 23:50:38 +0000
committerEdward Thomson <ethomson@github.com>2017-01-21 23:50:38 +0000
commit8d3b39a6ad325fe1d08e17281803e26359756fc6 (patch)
treeb428b4db0d754c71bb1a090997b74c32f61a55ac /include
parent0418d3b7a8469464b9d22d1646034fcca4bda346 (diff)
parent28d0ba0ba5f41f71997a15e81bbda4ed2d1b896a (diff)
downloadlibgit2-8d3b39a6ad325fe1d08e17281803e26359756fc6.tar.gz
Merge branch 'pr/3912'
Diffstat (limited to 'include')
-rw-r--r--include/git2/common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index 99c99812b..5be7fb632 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -175,6 +175,7 @@ typedef enum {
GIT_OPT_SET_SSL_CERT_LOCATIONS,
GIT_OPT_SET_USER_AGENT,
GIT_OPT_ENABLE_STRICT_OBJECT_CREATION,
+ GIT_OPT_ENABLE_STRICT_SYMBOLIC_REF_CREATION,
GIT_OPT_SET_SSL_CIPHERS,
GIT_OPT_GET_USER_AGENT,
} git_libgit2_opt_t;
@@ -289,6 +290,15 @@ typedef enum {
* > will be validated when creating a new commit. This defaults
* > to enabled.
*
+ * * opts(GIT_OPT_ENABLE_STRICT_SYMBOLIC_REF_CREATION, int enabled)
+ *
+ * > Validate the target of a symbolic ref when creating it. For
+ * > example, `foobar` is not a valid ref, therefore `foobar` is
+ * > not a valid target for a symbolic ref by default, whereas
+ * > `refs/heads/foobar` is. Disabling this bypasses validation
+ * > so that an arbitrary strings such as `foobar` can be used
+ * > for a symbolic ref target. This defaults to enabled.
+ *
* * opts(GIT_OPT_SET_SSL_CIPHERS, const char *ciphers)
*
* > Set the SSL ciphers use for HTTPS connections.