diff options
| author | Derrick Stolee <dstolee@microsoft.com> | 2019-01-16 10:26:00 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-01-17 13:44:43 -0800 |
| commit | 3d036eb0d2c778941cd31b8785d5036949e8778b (patch) | |
| tree | cb67ddde97b94b11b041a12ca63d2bcf652c16e9 /builtin/commit.c | |
| parent | revision: implement sparse algorithm (diff) | |
| download | git-3d036eb0d2c778941cd31b8785d5036949e8778b.tar.gz git-3d036eb0d2c778941cd31b8785d5036949e8778b.zip | |
pack-objects: create pack.useSparse setting
The '--sparse' flag in 'git pack-objects' changes the algorithm
used to enumerate objects to one that is faster for individual
users pushing new objects that change only a small cone of the
working directory. The sparse algorithm is not recommended for a
server, which likely sends new objects that appear across the
entire working directory.
Create a 'pack.useSparse' setting that enables this new algorithm.
This allows 'git push' to use this algorithm without passing a
'--sparse' flag all the way through four levels of run_command()
calls.
If the '--no-sparse' flag is set, then this config setting is
overridden.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
