summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: df373ea)
raw | patch | inline | side by side (parent: df373ea)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 26 Jan 2007 06:51:49 +0000 (22:51 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 26 Jan 2007 08:02:51 +0000 (00:02 -0800) |
Document the recommended way to prime a repository with tons of
references with 'pack-refs --all -prune'.
Signed-off-by: Junio C Hamano <junkio@cox.net>
references with 'pack-refs --all -prune'.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-pack-refs.txt | patch | blob | history |
index 464269fbb994dcee96bb08197c4f3d22fc0d4ad8..a20fc7de40083b1c40e30a1ab68de81e94d91737 100644 (file)
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