Skip to content

Centralize git-pkgs user agent string - #225

Merged
andrew merged 1 commit into
mainfrom
centralize-user-agent
Jun 3, 2026
Merged

andrew merged 1 commit into
mainfrom
centralize-user-agent

Conversation

@andrew

@andrew andrew commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #224. Replaces 17 inline "git-pkgs/" + version concatenations across cmd/ with a single package-level userAgent variable populated in init() after version resolves.

New callers reach for userAgent instead of reconstructing the string, so the format lives in one place.

Replaces 17 inline "git-pkgs/" + version concatenations with a single
package-level userAgent variable populated in init() once version has
resolved. New callers reach for cmd.userAgent instead of reconstructing
the string, keeping the UA format in one place.
@andrew
andrew merged commit 7174987 into main Jun 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant