diff options
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c index 00a3ef04d..4a6e0f353 100644 --- a/src/settings.c +++ b/src/settings.c @@ -209,6 +209,14 @@ int git_libgit2_opts(int key, ...) #endif break; + case GIT_OPT_GET_USER_AGENT: + { + git_buf *out = va_arg(ap, git_buf *); + git_buf_sanitize(out); + error = git_buf_sets(out, git__user_agent); + } + break; + default: giterr_set(GITERR_INVALID, "invalid option key"); error = -1; |