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-index-pack(
1)
</title>
312 git-index-pack(
1) Manual Page
315 <div class=
"sectionbody">
317 Build pack index file for an existing packed archive
322 <div class=
"sectionbody">
323 <div class=
"verseblock">
324 <div class=
"content"><em>git index-pack
</em> [-v] [-o
<index-file
>]
<pack-file
>
325 <em>git index-pack
</em> --stdin [--fix-thin] [--keep] [-v] [-o
<index-file
>]
326 [
<pack-file
>]
</div></div>
328 <h2 id=
"_description">DESCRIPTION
</h2>
329 <div class=
"sectionbody">
330 <div class=
"para"><p>Reads a packed archive (.pack) from the specified file, and
331 builds a pack index file (.idx) for it. The packed archive
332 together with the pack index can then be placed in the
333 objects/pack/ directory of a git repository.
</p></div>
335 <h2 id=
"_options">OPTIONS
</h2>
336 <div class=
"sectionbody">
337 <div class=
"vlist"><dl>
343 Be verbose about what is going on, including progress status.
347 -o
<index-file
>
351 Write the generated pack index into the specified
352 file. Without this option the name of pack index
353 file is constructed from the name of packed archive
354 file by replacing .pack with .idx (and the program
355 fails if the name of packed archive does not end
364 When this flag is provided, the pack is read from stdin
365 instead and a copy is then written to
<pack-file
>. If
366 <pack-file
> is not specified, the pack is written to
367 objects/pack/ directory of the current git repository with
368 a default name determined from the pack content. If
369 <pack-file
> is not specified consider using --keep to
370 prevent a race condition between this process and
379 Fix a
"thin" pack produced by
<tt>git pack-objects --thin
</tt> (see
380 <a href=
"git-pack-objects.html">git-pack-objects(
1)
</a> for details) by adding the
381 excluded objects the deltified objects are based on to the
382 pack. This option only makes sense in conjunction with --stdin.
390 Before moving the index into its final destination
391 create an empty .keep file for the associated pack file.
392 This option is usually necessary with --stdin to prevent a
393 simultaneous
<em>git repack
</em> process from deleting
394 the newly constructed pack and index before refs can be
395 updated to use objects contained in the pack.
403 Like --keep create a .keep file before moving the index into
404 its final destination, but rather than creating an empty file
405 place
<em>why
</em> followed by an LF into the .keep file. The
<em>why
</em>
406 message can later be searched for within all .keep files to
407 locate any which have outlived their usefulness.
411 --index-version=
<version
>[,
<offset
>]
415 This is intended to be used by the test suite only. It allows
416 to force the version for the generated pack index, and to force
417 64-bit index entries on objects located above the given offset.
425 Die, if the pack contains broken objects or links.
430 <h2 id=
"_note">Note
</h2>
431 <div class=
"sectionbody">
432 <div class=
"para"><p>Once the index has been created, the list of object names is sorted
433 and the SHA1 hash of that list is printed to stdout. If --stdin was
434 also used then this is prefixed by either
"pack\t", or
"keep\t" if a
435 new .keep file was successfully created. This is useful to remove a
436 .keep file used as a lock to prevent the race with
<em>git repack
</em>
437 mentioned above.
</p></div>
439 <h2 id=
"_author">Author
</h2>
440 <div class=
"sectionbody">
441 <div class=
"para"><p>Written by Sergey Vlasov
<vsu@altlinux.ru
></p></div>
443 <h2 id=
"_documentation">Documentation
</h2>
444 <div class=
"sectionbody">
445 <div class=
"para"><p>Documentation by Sergey Vlasov
</p></div>
447 <h2 id=
"_git">GIT
</h2>
448 <div class=
"sectionbody">
449 <div class=
"para"><p>Part of the
<a href=
"git.html">git(
1)
</a> suite
</p></div>
452 <div id=
"footer-text">
453 Last updated
2010-
02-
19 09:
57:
44 UTC