summaryrefslogtreecommitdiff
path: root/include/git2/common.h
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2016-02-23 08:16:12 +0100
committerVicent Marti <vicent@github.com>2016-02-23 08:16:12 +0100
commitfb96b28cd9f66998f38a56abb7398ea899c12512 (patch)
treed756764c30f83075a079600f776694d13ec35d37 /include/git2/common.h
parent305c4f95ce365a68db3895ed6852cd82f7315811 (diff)
parent7bab2e8fbf302fc7d7732ee92652271015db2a58 (diff)
downloadlibgit2-fb96b28cd9f66998f38a56abb7398ea899c12512.tar.gz
Merge pull request #3629 from ethomson/set_user_agent_doc
git_libgit2_opts: minor documentation & usage fixes
Diffstat (limited to 'include/git2/common.h')
-rw-r--r--include/git2/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index ee230dfae..c26030840 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -245,6 +245,12 @@ typedef enum {
*
* * opts(GIT_OPT_SET_USER_AGENT, const char *user_agent)
*
+ * > Set the value of the User-Agent header. This value will be
+ * > appended to "git/1.0", for compatibility with other git clients.
+ * >
+ * > - `user_agent` is the value that will be delivered as the
+ * > User-Agent header on HTTP requests.
+ *
* @param option Option key
* @param ... value to set the option
* @return 0 on success, <0 on failure