diff options
author | Shawn Pearce <spearce@spearce.org> | 2015-04-30 12:43:46 -0700 |
---|---|---|
committer | Shawn Pearce <spearce@spearce.org> | 2015-04-30 14:40:35 -0700 |
commit | 4a984e20332a765a81cadeaa4875b228ebf290fb (patch) | |
tree | 68591da210bd0d795e9e7da3b9ad790d26261840 /org.eclipse.jgit.ui | |
parent | 7e0ebb8e29a1bc73ead72bc00569f06169079a26 (diff) | |
download | jgit-4a984e20332a765a81cadeaa4875b228ebf290fb.tar.gz jgit-4a984e20332a765a81cadeaa4875b228ebf290fb.zip |
Support agent= capability in wire protocol
Since git-core ff5effd (v1.7.12.1) the native wire protocol transmits
the server and client implementation and version strings using
capability "agent=git/1.7.12.1" or similar.
Support this in JGit and hang the implementation data off UploadPack
and ReceivePack. On HTTP transports default to the User-Agent HTTP
header until the client overrides this with the optional capability
string in the first line.
Extract the user agent string into a UserAgent class under transport
where it can be specified to a different value if the application's
build process has broken the Implementation-Version header in the
JGit package.
Change-Id: Icfc6524d84a787386d1786310b421b2f92ae9e65
Diffstat (limited to 'org.eclipse.jgit.ui')
0 files changed, 0 insertions, 0 deletions