diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-10-02 03:43:11 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-11-12 17:18:42 +0100 |
| commit | de870533e02505f3868403dabd7699da01e4ceda (patch) | |
| tree | 620ac16e1abe76f4fd5d19fb8fb2ed65604f6570 /include/git2/common.h | |
| parent | 1c34b717e0962971afe28139c3a44b3f5733cff2 (diff) | |
| download | libgit2-de870533e02505f3868403dabd7699da01e4ceda.tar.gz | |
settings: add a setter for a custom user-agent
Diffstat (limited to 'include/git2/common.h')
| -rw-r--r-- | include/git2/common.h | 3 |
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 |
