summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: caf9de2)
raw | patch | inline | side by side (parent: caf9de2)
author | Junio C Hamano <gitster@pobox.com> | |
Mon, 17 Sep 2007 07:39:52 +0000 (00:39 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 18 Sep 2007 06:12:15 +0000 (23:12 -0700) |
This documents the auto-packing of loose objects performed by
git-gc --auto.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-gc --auto.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt | patch | blob | history | |
Documentation/git-gc.txt | patch | blob | history |
index 866e0534b8843af3c1789becd06b244162632d01..6b6553d9da8f92813ed4a79e310d14d0cc8b690f 100644 (file)
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
algorithm used by 'git gc --aggressive'. This defaults
to 10.
+gc.auto::
+ When there are approximately more than this many loose
+ objects in the repository, `git gc --auto` will pack them.
+ Some Porcelain commands use this command to perform a
+ light-weight garbage collection from time to time. Setting
+ this to 0 disables it.
+
gc.packrefs::
`git gc` does not run `git pack-refs` in a bare repository by
default so that older dumb-transport clients can still fetch
index c7742ca9630b13d1eeef16d175f8ca840ddff4b0..40c1ce4a21302b315c8f88802645ce0161a0c47c 100644 (file)
--- a/Documentation/git-gc.txt
+++ b/Documentation/git-gc.txt
SYNOPSIS
--------
-'git-gc' [--prune] [--aggressive]
+'git-gc' [--prune] [--aggressive] [--auto]
DESCRIPTION
-----------
persistent, so this option only needs to be used occasionally; every
few hundred changesets or so.
+--auto::
+ With this option, `git gc` checks if there are too many
+ loose objects in the repository and runs
+ gitlink:git-repack[1] with `-d -l` option to pack them.
+ The threshold is set with `gc.auto` configuration
+ variable, and can be disabled by setting it to 0. Some
+ Porcelain commands use this after they perform operation
+ that could create many loose objects automatically.
+
Configuration
-------------