diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-02-08 14:08:52 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-02-10 10:46:37 -0800 |
commit | 9f673f9477c63433aa0774c11b9e42979721f4d6 (patch) | |
tree | 866fe2aba1898f77e4cfb43d46d19db885fe1f5e /Documentation/config.txt | |
parent | de0957ce2e88b8ad639f1e4a7197eb556e114a1c (diff) | |
download | git-9f673f9477c63433aa0774c11b9e42979721f4d6.tar.gz |
gc: config option for running --auto in background
`gc --auto` takes time and can block the user temporarily (but not any
less annoyingly). Make it run in background on systems that support
it. The only thing lost with running in background is printouts. But
gc output is not really interesting. You can keep it in foreground by
changing gc.autodetach.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config.txt')
-rw-r--r-- | Documentation/config.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index 5f4d7939ed..4781773e6a 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -1167,6 +1167,10 @@ gc.autopacklimit:: --auto` consolidates them into one larger pack. The default value is 50. Setting this to 0 disables it. +gc.autodetach:: + Make `git gc --auto` return immediately andrun in background + if the system supports it. Default is true. + gc.packrefs:: Running `git pack-refs` in a repository renders it unclonable by Git versions prior to 1.5.1.2 over dumb |