summaryrefslogtreecommitdiffstats
path: root/git-pack-refs.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2006-11-07 07:19:13 +0000
committerJunio C Hamano <junio@hera.kernel.org>2006-11-07 07:19:13 +0000
commitd8c9d433c3925d52d9a78bab8de03ee3de469440 (patch)
tree45bb8e11ae632ebce0ab4b6da37afc6fb063ee08 /git-pack-refs.txt
parent125a17bb6c6b500f4d3b9cad9d7f3c5fabb78330 (diff)
downloadgit-htmldocs-d8c9d433c3925d52d9a78bab8de03ee3de469440.tar.gz
Autogenerated HTML docs for v1.4.3.4-gbd45
Diffstat (limited to 'git-pack-refs.txt')
-rw-r--r--git-pack-refs.txt54
1 files changed, 54 insertions, 0 deletions
diff --git a/git-pack-refs.txt b/git-pack-refs.txt
new file mode 100644
index 000000000..5da510577
--- /dev/null
+++ b/git-pack-refs.txt
@@ -0,0 +1,54 @@
+git-pack-refs(1)
+================
+
+NAME
+----
+git-pack-refs - Pack heads and tags for efficient repository access
+
+SYNOPSIS
+--------
+'git-pack-refs' [--all] [--prune]
+
+DESCRIPTION
+-----------
+
+Traditionally, tips of branches and tags (collectively known as
+'refs') were stored one file per ref under `$GIT_DIR/refs`
+directory. While many branch tips tend to be updated often,
+most tags and some branch tips are never updated. When a
+repository has hundreds or thousands of tags, this
+one-file-per-ref format both wastes storage and hurts
+performance.
+
+This command is used to solve the storage and performance
+problem by stashing the refs in a single file,
+`$GIT_DIR/packed-refs`. When a ref is missing from the
+traditional `$GIT_DIR/refs` hierarchy, it is looked up in this
+file and used if found.
+
+Subsequent updates to branches always creates new file under
+`$GIT_DIR/refs` hierarchy.
+
+OPTIONS
+-------
+
+\--all::
+
+The command by default packs all tags and leaves branch tips
+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
+a repository with many branches of historical interests.
+
+\--prune::
+
+After packing the refs, remove loose refs under `$GIT_DIR/refs`
+hierarchy. This should probably become default.
+
+Author
+------
+Written by Linus Torvalds <torvalds@osdl.org>
+
+GIT
+---
+Part of the gitlink:git[7] suite