</div>\r
<h2>SYNOPSIS</h2>\r
<div class="sectionbody">\r
-<p><em>git-gc</em></p>\r
+<p><em>git-gc</em> [--prune]</p>\r
</div>\r
<h2>DESCRIPTION</h2>\r
<div class="sectionbody">\r
each repository to maintain good disk space utilization and good\r
operating performance.</p>\r
</div>\r
+<h2>OPTIONS</h2>\r
+<div class="sectionbody">\r
+<dl>\r
+<dt>\r
+--prune\r
+</dt>\r
+<dd>\r
+<p>\r
+ Usually <tt>git-gc</tt> packs refs, expires old reflog entries,\r
+ packs loose objects,\r
+ and removes old <em>rerere</em> records. Removal\r
+ of unreferenced loose objects is an unsafe operation\r
+ while other git operations are in progress, so it is not\r
+ done by default. Pass this option if you want it, and only\r
+ when you know nobody else is creating new objects in the\r
+ repository at the same time (e.g. never use this option\r
+ in a cron script).\r
+</p>\r
+</dd>\r
+</dl>\r
+</div>\r
<h2>Configuration</h2>\r
<div class="sectionbody">\r
<p>The optional configuration variable <em>gc.reflogExpire</em> can be\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 17-Jan-2007 17:42:14 UTC\r
+Last updated 22-Jan-2007 08:59:52 UTC\r
</div>\r
</div>\r
</body>\r
SYNOPSIS
--------
-'git-gc'
+'git-gc' [--prune]
DESCRIPTION
-----------
each repository to maintain good disk space utilization and good
operating performance.
+OPTIONS
+-------
+
+--prune::
+ Usually `git-gc` packs refs, expires old reflog entries,
+ packs loose objects,
+ and removes old 'rerere' records. Removal
+ of unreferenced loose objects is an unsafe operation
+ while other git operations are in progress, so it is not
+ done by default. Pass this option if you want it, and only
+ when you know nobody else is creating new objects in the
+ repository at the same time (e.g. never use this option
+ in a cron script).
+
+
Configuration
-------------
</div>\r
<h2>SYNOPSIS</h2>\r
<div class="sectionbody">\r
-<p><em>git-prune</em> [-n] [--grace=<time>]</p>\r
+<p><em>git-prune</em> [-n] [--] [<head>…]</p>\r
</div>\r
<h2>DESCRIPTION</h2>\r
<div class="sectionbody">\r
</p>\r
</dd>\r
<dt>\r
---grace=<time>\r
+--\r
</dt>\r
<dd>\r
<p>\r
- Do not prune loose objects that are younger than the\r
- specified time. This gives a grace period to newly\r
- created objects from getting pruned.\r
+ Do not interpret any more arguments as options.\r
+</p>\r
+</dd>\r
+<dt>\r
+<head>…\r
+</dt>\r
+<dd>\r
+<p>\r
+ In addition to objects\r
+ reachable from any of our references, keep objects\r
+ reachable from listed <head>s.\r
</p>\r
</dd>\r
</dl>\r
</div>\r
+<h2>EXAMPLE</h2>\r
+<div class="sectionbody">\r
+<p>To prune objects not used by your repository nor another that\r
+borrows from your repository via its\r
+<tt>.git/objects/info/alternates</tt>:</p>\r
+<div class="listingblock">\r
+<div class="content">\r
+<pre><tt>$ git prune $(cd ../another && $(git-rev-parse --all))</tt></pre>\r
+</div></div>\r
+</div>\r
<h2>Author</h2>\r
<div class="sectionbody">\r
<p>Written by Linus Torvalds <torvalds@osdl.org></p>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 21-Jan-2007 08:57:03 UTC\r
+Last updated 22-Jan-2007 08:59:53 UTC\r
</div>\r
</div>\r
</body>\r
SYNOPSIS
--------
-'git-prune' [-n] [--grace=<time>]
+'git-prune' [-n] [--] [<head>...]
DESCRIPTION
-----------
Do not remove anything; just report what it would
remove.
---grace=<time>::
- Do not prune loose objects that are younger than the
- specified time. This gives a grace period to newly
- created objects from getting pruned.
-
-////////////////////////////////////////////
\--::
Do not interpret any more arguments as options.
------------
$ git prune $(cd ../another && $(git-rev-parse --all))
------------
-////////////////////////////////////////////
Author
------
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 21-Jan-2007 08:57:05 UTC\r
+Last updated 22-Jan-2007 08:59:53 UTC\r
</div>\r
</div>\r
</body>\r
current contents of the file:</p>\r
<div class="listingblock">\r
<div class="content">\r
-<pre><tt>$ git cat-file blob a6b11f7a\r
-goodbye, word</tt></pre>\r
+<pre><tt>$ git cat-file blob 8b9743b2\r
+goodbye, world</tt></pre>\r
</div></div>\r
<p>The "status" command is a useful way to get a quick summary of the\r
situation:</p>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 08-Jan-2007 06:53:24 UTC\r
+Last updated 22-Jan-2007 08:59:55 UTC\r
</div>\r
</div>\r
</body>\r
current contents of the file:
------------------------------------------------
-$ git cat-file blob a6b11f7a
-goodbye, word
+$ git cat-file blob 8b9743b2
+goodbye, world
------------------------------------------------
The "status" command is a useful way to get a quick summary of the