]> source.dussan.org Git - jgit.git/commit
TransferConfig: Move reading advertisesid setting into TransferConfig 66/196566/6
authorJosh Brown <sjoshbrown@google.com>
Tue, 1 Nov 2022 19:00:07 +0000 (19:00 +0000)
committerJosh Brown <sjoshbrown@google.com>
Wed, 2 Nov 2022 20:13:08 +0000 (16:13 -0400)
commit7b0a71a5e9916f0782eb24056a35b376373fdf59
tree3ef7669b1e5d13d431b9c5ed6c65cbbade609f3f
parente8068188f134b2b6a0d96314a3642154a1b66ab4
TransferConfig: Move reading advertisesid setting into TransferConfig

The config setting to enable advertising the session-id capability is
currently read in the ReceivePack class. This change moves it to a
common location in the TransferConfig class so that it can be reused
in other places like UploadPack. TransferConfig is also a more logical
place for the setting as it resides in the `transfer` config section.

Set the transfer.advertisesid setting to true to send the session-id
capability to the client.

Change-Id: If68ecb5e68b59f5c452a7992d02e3688b0a86747
Signed-off-by: Josh Brown <sjoshbrown@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/TransferConfigTest.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransferConfig.java