Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] Disabling compression

Hello there,

When using git on the command line i can set the following configuration options
to disable compression:

# disable delta compression
git config --global pack.window 0
git config --global core.bigFileThreshold 1

# disable loose and pack compression
git config --global core.compression 0
git config --global core.looseCompression 0
git config --global pack.compression 0

I'd like to know how to do this with Jgit in the context of a pushcommand, for example in code like this

val pushCommand = git.push()
val results = pushCommand.call()


But have not found examples of how to use it, ie how to enable that configuration
globally or in the context of a specific PushCommand as above.

Thank you,

David

Back to the top