Skip to content

Commit 5bc93ea

Browse files
author
Edward Thomson
committed
git_libgit2_opts: document GIT_OPT_SET_USER_AGENT
1 parent 305c4f9 commit 5bc93ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/git2/common.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ typedef enum {
245245
*
246246
* * opts(GIT_OPT_SET_USER_AGENT, const char *user_agent)
247247
*
248+
* > Set the value of the User-Agent header. This value will be
249+
* > appended to "git/1.0", for compatibility with other git clients.
250+
* >
251+
* > - `user_agent` is the value that will be delivered as the
252+
* > User-Agent header on HTTP requests.
253+
*
248254
* @param option Option key
249255
* @param ... value to set the option
250256
* @return 0 on success, <0 on failure

0 commit comments

Comments
 (0)