summaryrefslogtreecommitdiffstats
path: root/git-pack-refs.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2007-01-26 09:44:51 +0000
committerJunio C Hamano <junio@hera.kernel.org>2007-01-26 09:44:51 +0000
commit42b7867a76b70bb30e825bc111b7468bc3c43fa0 (patch)
tree71f07f37c04f4a0e370693e5a8336b56f035cab9 /git-pack-refs.txt
parent54ea8d3a56e74b2fd1805430eed8bc438d68ea44 (diff)
downloadgit-htmldocs-42b7867a76b70bb30e825bc111b7468bc3c43fa0.tar.gz
Autogenerated HTML docs for v1.5.0-rc2-g8a816
Diffstat (limited to 'git-pack-refs.txt')
-rw-r--r--git-pack-refs.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/git-pack-refs.txt b/git-pack-refs.txt
index 464269fbb..a20fc7de4 100644
--- a/git-pack-refs.txt
+++ b/git-pack-refs.txt
@@ -29,12 +29,23 @@ file and used if found.
Subsequent updates to branches always creates new file under
`$GIT_DIR/refs` hierarchy.
+A recommended practice to deal with a repository with too many
+refs is to pack its refs with `--all --prune` once, and
+occasionally run `git-pack-refs \--prune`. Tags are by
+definition stationary and are not expected to change. Branch
+heads will be packed with the initial `pack-refs --all`, but
+only the currently active branch heads will become unpacked,
+and next `pack-refs` (without `--all`) will leave them
+unpacked.
+
+
OPTIONS
-------
\--all::
-The command by default packs all tags and leaves branch tips
+The command by default packs all tags and refs that are already
+packed, and leaves other refs
alone. This is because branches are expected to be actively
developed and packing their tips does not help performance.
This option causes branch tips to be packed as well. Useful for