1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" />
6 <meta name=
"generator" content=
"AsciiDoc 8.2.5" />
7 <style type=
"text/css">
9 p
, li
, dt
, dd
, div
, pre
, h1
, h2
, h3
, h4
, h5
, h6
{
11 border: 1px solid red;
16 margin: 1em 5% 1em 5%;
21 text-decoration: underline
;
39 h1
, h2
, h3
, h4
, h5
, h6
{
41 font-family: sans-serif
;
48 border-bottom: 2px solid silver
;
66 border: 1px solid silver
;
81 font-family: sans-serif
;
88 font-family: sans-serif
;
92 font-family: sans-serif
;
94 border-top: 2px solid silver
;
100 padding-bottom: 0.5em;
104 padding-bottom: 0.5em;
108 div
.tableblock
, div
.imageblock
, div
.exampleblock
, div
.verseblock
,
109 div
.quoteblock
, div
.literalblock
, div
.listingblock
, div
.sidebarblock
,
110 div
.admonitionblock
{
113 margin-bottom: 1.5em;
115 div
.admonitionblock
{
117 margin-bottom: 2.5em;
120 div
.content
{ /* Block element content. */
124 /* Block element titles. */
125 div
.title
, caption
.title
{
126 font-family: sans-serif
;
130 margin-bottom: 0.5em;
136 td div
.title:first-child
{
139 div
.content div
.title:first-child
{
142 div
.content
+ div
.title
{
146 div
.sidebarblock
> div
.content
{
148 border: 1px solid silver
;
155 div
.listingblock
> div
.content
{
156 border: 1px solid silver
;
161 div
.quoteblock
> div
.content
{
168 div
.verseblock
+ div
.attribution
{
172 div
.admonitionblock
.icon
{
176 text-decoration: underline
;
178 padding-right: 0.5em;
180 div
.admonitionblock td
.content
{
182 border-left: 2px solid silver
;
185 div
.exampleblock
> div
.content
{
186 border-left: 2px solid silver
;
190 div
.verseblock div
.content
{
194 div
.imageblock div
.content
{ padding-left: 0; }
195 div
.imageblock img
{ border: 1px solid silver
; }
196 span
.image img
{ border-style: none
; }
200 margin-bottom: 0.8em;
212 list-style-position: outside
;
215 list-style-type: lower-alpha
;
218 div
.tableblock
> table
{
219 border: 3px solid
#527bbd;
222 font-family: sans-serif
;
231 margin-bottom: 0.8em;
239 padding-right: 0.8em;
246 div#footer-badges
{ display: none
; }
251 font-family: sans-serif
;
255 margin-bottom: 0.1em;
258 div
.toclevel1
, div
.toclevel2
, div
.toclevel3
, div
.toclevel4
{
274 include1::./stylesheets
/xhtml11-manpage
.css
[]
275 /* Workarounds for IE6's broken and incomplete CSS2. */
277 div
.sidebar-content
{
279 border: 1px solid silver
;
282 div
.sidebar-title
, div
.image-title
{
283 font-family: sans-serif
;
286 margin-bottom: 0.5em;
289 div
.listingblock div
.content
{
290 border: 1px solid silver
;
295 div
.quoteblock-content
{
299 div
.exampleblock-content
{
300 border-left: 2px solid silver
;
304 /* IE6 sets dynamically generated links as visited. */
305 div#toc
a:visited
{ color: blue
; }
307 <title>git-pack-objects(
1)
</title>
312 git-pack-objects(
1) Manual Page
315 <div class=
"sectionbody">
316 <p>git-pack-objects -
317 Create a packed archive of objects
322 <div class=
"sectionbody">
323 <div class=
"verseblock">
324 <div class=
"content"><em>git pack-objects
</em> [-q | --progress | --all-progress] [--all-progress-implied]
325 [--no-reuse-delta] [--delta-base-offset] [--non-empty]
326 [--local] [--incremental] [--window=N] [--depth=N]
327 [--revs [--unpacked | --all]*] [--stdout | base-name]
328 [--keep-true-parents]
< object-list
</div></div>
330 <h2 id=
"_description">DESCRIPTION
</h2>
331 <div class=
"sectionbody">
332 <div class=
"para"><p>Reads list of objects from the standard input, and writes a packed
333 archive with specified base-name, or to the standard output.
</p></div>
334 <div class=
"para"><p>A packed archive is an efficient way to transfer set of objects
335 between two repositories, and also is an archival format which
336 is efficient to access. The packed archive format (.pack) is
337 designed to be self contained so that it can be unpacked without
338 any further information, but for fast, random access to the objects
339 in the pack, a pack index file (.idx) will be generated.
</p></div>
340 <div class=
"para"><p>Placing both in the pack/ subdirectory of $GIT_OBJECT_DIRECTORY (or
341 any of the directories on $GIT_ALTERNATE_OBJECT_DIRECTORIES)
342 enables git to read from such an archive.
</p></div>
343 <div class=
"para"><p>The
<em>git-unpack-objects
</em> command can read the packed archive and
344 expand the objects contained in the pack into
"one-file
345 one-object" format; this is typically done by the smart-pull
346 commands when a pack is created on-the-fly for efficient network
347 transport by their peers.
</p></div>
348 <div class=
"para"><p>In a packed archive, an object is either stored as a compressed
349 whole, or as a difference from some other object. The latter is
350 often called a delta.
</p></div>
352 <h2 id=
"_options">OPTIONS
</h2>
353 <div class=
"sectionbody">
354 <div class=
"vlist"><dl>
360 Write into a pair of files (.pack and .idx), using
361 <base-name
> to determine the name of the created file.
362 When this option is used, the two files are written in
363 <base-name
>-
<SHA1
>.{pack,idx} files.
<SHA1
> is a hash
364 of the sorted object names to make the resulting filename
365 based on the pack content, and written to the standard
366 output of the command.
374 Write the pack contents (what would have been written to
375 .pack file) out to the standard output.
383 Read the revision arguments from the standard input, instead of
384 individual object names. The revision arguments are processed
385 the same way as
<em>git-rev-list
</em> with the
<tt>--objects
</tt> flag
386 uses its
<tt>commit
</tt> arguments to build the list of objects it
387 outputs. The objects on the resulting list are packed.
395 This implies
<tt>--revs
</tt>. When processing the list of
396 revision arguments read from the standard input, limit
397 the objects packed to those that are not already packed.
405 This implies
<tt>--revs
</tt>. In addition to the list of
406 revision arguments read from the standard input, pretend
407 as if all refs under
<tt>$GIT_DIR/refs
</tt> are specified to be
416 Include unasked-for annotated tags if the object they
417 reference was included in the resulting packfile. This
418 can be useful to send new tags to native git clients.
429 These two options affect how the objects contained in
430 the pack are stored using delta compression. The
431 objects are first internally sorted by type, size and
432 optionally names and compared against the other objects
433 within --window to see if using delta compression saves
434 space. --depth limits the maximum delta depth; making
435 it too deep affects the performance on the unpacker
436 side, because delta data needs to be applied that many
437 times to get to the necessary object.
438 The default value for --window is
10 and --depth is
50.
446 This option provides an additional limit on top of
<tt>--window
</tt>;
447 the window size will dynamically scale down so as to not take
448 up more than N bytes in memory. This is useful in
449 repositories with a mix of large and small objects to not run
450 out of memory with a large window, but still be able to take
451 advantage of the large window for the smaller objects. The
452 size can be suffixed with
"k",
"m", or
"g".
453 <tt>--window-memory=
0</tt> makes memory usage unlimited, which is the
458 --max-pack-size=
<n
>
462 Maximum size of each output packfile, expressed in MiB.
463 If specified, multiple packfiles may be created.
464 The default is unlimited, unless the config variable
465 <tt>pack.packSizeLimit
</tt> is set.
473 This flag causes an object already in a local pack that
474 has a .keep file to be ignored, even if it appears in the
483 This flag causes an object already in a pack ignored
484 even if it appears in the standard input.
492 This flag is similar to
<tt>--incremental
</tt>; instead of
493 ignoring all packed objects, it only ignores objects
494 that are packed and/or not in the local object store
495 (i.e. borrowed from an alternate).
503 Only create a packed archive if it would contain at
512 Progress status is reported on the standard error stream
513 by default when it is attached to a terminal, unless -q
514 is specified. This flag forces progress status even if
515 the standard error stream is not directed to a terminal.
523 When --stdout is specified then progress report is
524 displayed during the object count and compression phases
525 but inhibited during the write-out phase. The reason is
526 that in some cases the output stream is directly linked
527 to another command which may wish to display progress
528 status of its own as it processes incoming pack data.
529 This flag is like --progress except that it forces progress
530 report for the write-out phase as well even if --stdout is
535 --all-progress-implied
539 This is used to imply --all-progress whenever progress display
540 is activated. Unlike --all-progress this flag doesn't actually
541 force any progress display by itself.
549 This flag makes the command not to report its progress
550 on the standard error stream.
558 When creating a packed archive in a repository that
559 has existing packs, the command reuses existing deltas.
560 This sometimes results in a slightly suboptimal pack.
561 This flag tells the command not to reuse existing deltas
562 but compute them from scratch.
570 This flag tells the command not to reuse existing object data at all,
571 including non deltified object, forcing recompression of everything.
572 This implies --no-reuse-delta. Useful only in the obscure case where
573 wholesale enforcement of a different compression level on the
574 packed data is desired.
582 Specifies compression level for newly-compressed data in the
583 generated pack. If not specified, pack compression level is
584 determined first by pack.compression, then by core.compression,
585 and defaults to -
1, the zlib default, if neither is set.
586 Add --no-reuse-object if you want to force a uniform compression
587 level on all data no matter the source.
595 A packed archive can express base object of a delta as
596 either
20-byte object name or as an offset in the
597 stream, but older version of git does not understand the
598 latter. By default,
<em>git-pack-objects
</em> only uses the
599 former format for better compatibility. This option
600 allows the command to use the latter format for
601 compactness. Depending on the average delta chain
602 length, this option typically shrinks the resulting
603 packfile by
3-
5 per-cent.
611 Specifies the number of threads to spawn when searching for best
612 delta matches. This requires that pack-objects be compiled with
613 pthreads otherwise this option is ignored with a warning.
614 This is meant to reduce packing time on multiprocessor machines.
615 The required amount of memory for the delta search window is
616 however multiplied by the number of threads.
617 Specifying
0 will cause git to auto-detect the number of CPU's
618 and set the number of threads accordingly.
622 --index-version=
<version
>[,
<offset
>]
626 This is intended to be used by the test suite only. It allows
627 to force the version for the generated pack index, and to force
628 64-bit index entries on objects located above the given offset.
636 With this option, parents that are hidden by grafts are packed
642 <h2 id=
"_author">Author
</h2>
643 <div class=
"sectionbody">
644 <div class=
"para"><p>Written by Linus Torvalds
<torvalds@osdl.org
></p></div>
646 <h2 id=
"_documentation">Documentation
</h2>
647 <div class=
"sectionbody">
648 <div class=
"para"><p>Documentation by Junio C Hamano
</p></div>
650 <h2 id=
"_see_also">SEE ALSO
</h2>
651 <div class=
"sectionbody">
652 <div class=
"para"><p><a href=
"git-rev-list.html">git-rev-list(
1)
</a>
653 <a href=
"git-repack.html">git-repack(
1)
</a>
654 <a href=
"git-prune-packed.html">git-prune-packed(
1)
</a></p></div>
656 <h2 id=
"_git">GIT
</h2>
657 <div class=
"sectionbody">
658 <div class=
"para"><p>Part of the
<a href=
"git.html">git(
1)
</a> suite
</p></div>
661 <div id=
"footer-text">
662 Last updated
2009-
12-
03 09:
12:
42 UTC