Commit 75defb75a81c68b5eaa9601d0d70b803928aa7a4

punkymaniac 2021-05-18T10:51:20

Add documentation about GIT_OPT_GET_USER_AGENT

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/include/git2/common.h b/include/git2/common.h
index 8dd30d5..dee260e 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -356,6 +356,11 @@ typedef enum {
  *		>
  *		> - `ciphers` is the list of ciphers that are eanbled.
  *
+ *	* opts(GIT_OPT_GET_USER_AGENT, git_buf *out)
+ *
+ *		> Get the value of the User-Agent header.
+ *		> The User-Agent is written to the `out` buffer.
+ *
  *	* opts(GIT_OPT_ENABLE_OFS_DELTA, int enabled)
  *
  *		> Enable or disable the use of "offset deltas" when creating packfiles,