summaryrefslogtreecommitdiff
path: root/include/git2/common.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-11-12 19:20:36 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2015-11-12 19:20:36 +0100
commitecdc04287a9a245b9947aee21a86dc2f09a1bdcf (patch)
tree8ea8e1d8f8235a26e22b578b2eba37572e43d82a /include/git2/common.h
parent3f5877d18f0385044a5fffc579582bbeed296d32 (diff)
parent027bbaa72145c81b0d57b74bb9cf8fc9cb70db11 (diff)
downloadlibgit2-ecdc04287a9a245b9947aee21a86dc2f09a1bdcf.tar.gz
Merge pull request #3448 from libgit2/cmn/custom-agent
Support setting custom user-agent
Diffstat (limited to 'include/git2/common.h')
-rw-r--r--include/git2/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index 577906115..bf341e79f 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -145,6 +145,7 @@ typedef enum {
GIT_OPT_GET_TEMPLATE_PATH,
GIT_OPT_SET_TEMPLATE_PATH,
GIT_OPT_SET_SSL_CERT_LOCATIONS,
+ GIT_OPT_SET_USER_AGENT,
} git_libgit2_opt_t;
/**
@@ -240,6 +241,8 @@ typedef enum {
* >
* > Either parameter may be `NULL`, but not both.
*
+ * * opts(GIT_OPT_SET_USER_AGENT, const char *user_agent)
+ *
* @param option Option key
* @param ... value to set the option
* @return 0 on success, <0 on failure