OSDN Git Service

merge original branch.
[tortoisegit/TortoiseGitJp.git] / doc / source / en / TortoiseGit / git_doc / git-pack-redundant.html.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">\r
3 \r
4 <article lang="en" id="git-pack-redundant(1)">\r
5 <articleinfo>\r
6     <title>git-pack-redundant(1)</title>\r
7         <indexterm>\r
8                 <primary>git-pack-redundant(1)</primary>\r
9         </indexterm>\r
10 </articleinfo>\r
11 <simplesect id="_name">\r
12 <title>NAME</title>\r
13 <simpara>git-pack-redundant - Find redundant pack files</simpara>\r
14 </simplesect>\r
15 <simplesect id="_synopsis">\r
16 <title>SYNOPSIS</title>\r
17 <simpara><emphasis>git pack-redundant</emphasis> [ --verbose ] [ --alt-odb ] &lt; --all | .pack filename &#8230; &gt;</simpara>\r
18 </simplesect>\r
19 <simplesect id="_description">\r
20 <title>DESCRIPTION</title>\r
21 <simpara>This program computes which packs in your repository\r
22 are redundant. The output is suitable for piping to\r
23 <literal>xargs rm</literal> if you are in the root of the repository.</simpara>\r
24 <simpara><emphasis>git-pack-redundant</emphasis> accepts a list of objects on standard input. Any objects\r
25 given will be ignored when checking which packs are required. This makes the\r
26 following command useful when wanting to remove packs which contain unreachable\r
27 objects.</simpara>\r
28 <simpara>git fsck --full --unreachable | cut -d ' ' -f3 | \\r
29 git pack-redundant --all | xargs rm</simpara>\r
30 </simplesect>\r
31 <simplesect id="_options">\r
32 <title>OPTIONS</title>\r
33 <variablelist>\r
34 <varlistentry>\r
35 <term>\r
36 --all\r
37 </term>\r
38 <listitem>\r
39 <simpara>\r
40         Processes all packs. Any filenames on the command line are ignored.\r
41 </simpara>\r
42 </listitem>\r
43 </varlistentry>\r
44 <varlistentry>\r
45 <term>\r
46 --alt-odb\r
47 </term>\r
48 <listitem>\r
49 <simpara>\r
50         Don&#8217;t require objects present in packs from alternate object\r
51         directories to be present in local packs.\r
52 </simpara>\r
53 </listitem>\r
54 </varlistentry>\r
55 <varlistentry>\r
56 <term>\r
57 --verbose\r
58 </term>\r
59 <listitem>\r
60 <simpara>\r
61         Outputs some statistics to stderr. Has a small performance penalty.\r
62 </simpara>\r
63 </listitem>\r
64 </varlistentry>\r
65 </variablelist>\r
66 </simplesect>\r
67 <simplesect id="_author">\r
68 <title>Author</title>\r
69 <simpara>Written by Lukas Sandström &lt;<ulink url="mailto:lukass@etek.chalmers.se">lukass@etek.chalmers.se</ulink>&gt;</simpara>\r
70 </simplesect>\r
71 <simplesect id="_documentation">\r
72 <title>Documentation</title>\r
73 <simpara>Documentation by Lukas Sandström &lt;<ulink url="mailto:lukass@etek.chalmers.se">lukass@etek.chalmers.se</ulink>&gt;</simpara>\r
74 </simplesect>\r
75 <simplesect id="_see_also">\r
76 <title>SEE ALSO</title>\r
77 <simpara><xref linkend="git-pack-objects(1)"/>\r
78 <xref linkend="git-repack(1)"/>\r
79 <xref linkend="git-prune-packed(1)"/></simpara>\r
80 </simplesect>\r
81 <simplesect id="_git">\r
82 <title>GIT</title>\r
83 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>\r
84 </simplesect>\r
85 </article>\r