diff options
author | Mike Frysinger <vapier@google.com> | 2019-09-30 22:39:49 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2019-10-01 05:40:28 +0000 |
commit | 71b0f312b15b597ab54d4d3bd6629efdcf188884 (patch) | |
tree | b02a38b231c6e7e94776706d08670bc66db14ddf /subcmds/diff.py | |
parent | 369814b4a77adcc78b2549ad728e0d69175f08e8 (diff) | |
download | git-repo-71b0f312b15b597ab54d4d3bd6629efdcf188884.tar.gz |
git_command: refactor User-Agent settings
Convert the RepoUserAgent function into a UserAgent class. This
makes it cleaner to hold internal state, and will make it easier
to add a separate git User-Agent, although we don't do it here.
We make the RepoSourceVersion independent of GitCommand so that
it can be called by the class (later).
Bug: https://crbug.com/gerrit/11144
Change-Id: Iab4e1f974b8733a36b243b2d03f5085a96effa19
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/239232
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/diff.py')
0 files changed, 0 insertions, 0 deletions