summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.ui
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2015-04-30 12:43:46 -0700
committerShawn Pearce <spearce@spearce.org>2015-04-30 14:40:35 -0700
commit4a984e20332a765a81cadeaa4875b228ebf290fb (patch)
tree68591da210bd0d795e9e7da3b9ad790d26261840 /org.eclipse.jgit.ui
parent7e0ebb8e29a1bc73ead72bc00569f06169079a26 (diff)
downloadjgit-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