summaryrefslogtreecommitdiff
path: root/Documentation/user-manual.txt
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2013-02-10 15:10:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-02-11 04:39:26 (GMT)
commit901fd180c9d19025bafefc34e131125628169bdd (patch)
tree818de24b62c9621421a853d15cc88517d7024673 /Documentation/user-manual.txt
parentda2c7b3dc512675fae02abdf9449d48850aefb88 (diff)
downloadgit-901fd180c9d19025bafefc34e131125628169bdd.zip
git-901fd180c9d19025bafefc34e131125628169bdd.tar.gz
git-901fd180c9d19025bafefc34e131125628169bdd.tar.bz2
user-manual: Rewrite git-gc section for automatic packing
This should have happened back in 2007, when `git gc` learned about auto (e9831e8, git-gc --auto: add documentation, 2007-09-17). Signed-off-by: W. Trevor King <wking@tremily.us> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/user-manual.txt')
-rw-r--r--Documentation/user-manual.txt18
1 files changed, 6 insertions, 12 deletions
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 32dfe8a..4cb8325 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -1561,18 +1561,12 @@ $ git stash pop
Ensuring good performance
-------------------------
-On large repositories, git depends on compression to keep the history
-information from taking up too much space on disk or in memory.
-
-This compression is not performed automatically. Therefore you
-should occasionally run linkgit:git-gc[1]:
-
--------------------------------------------------
-$ git gc
--------------------------------------------------
-
-to recompress the archive. This can be very time-consuming, so
-you may prefer to run `git gc` when you are not doing other work.
+On large repositories, Git depends on compression to keep the history
+information from taking up too much space on disk or in memory. Some
+git commands may automatically run linkgit:git-gc[1], so you don't
+have to worry about running it manually. However, compressing a large
+repository may take a while, so you may want to call `gc` explicitly
+to avoid automatic compression kicking in when it is not convenient.
[[ensuring-reliability]]