2 .\" Title: git-show-index
3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
7 .\" Source: Git 2.40.1.423.g2807bd2c10
10 .TH "GIT\-SHOW\-INDEX" "1" "04/25/2023" "Git 2\&.40\&.1\&.423\&.g2807bd" "Git Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 git-show-index \- Show packed archive index
35 \fIgit show\-index\fR [\-\-object\-format=<hash\-algorithm>]
40 Read the \fB\&.idx\fR file for a Git packfile (created with \fBgit-pack-objects\fR(1) or \fBgit-index-pack\fR(1)) from the standard input, and dump its contents\&. The output consists of one object per line, with each line containing two or three space\-separated columns:
50 the first column is the offset in bytes of the object within the corresponding packfile
61 the second column is the object id of the object
72 if the index version is 2 or higher, the third column contains the CRC32 of the object data
75 The objects are output in the order in which they are found in the index file, which should be (in a correctly constructed file) sorted by object id\&.
77 Note that you can get more information on a packfile by calling \fBgit-verify-pack\fR(1)\&. However, as this command considers only the index file itself, it\(cqs both faster and more flexible\&.
80 \-\-object\-format=<hash\-algorithm>
82 Specify the given object format (hash algorithm) for the index file\&. The valid values are
85 \fIsha256\fR\&. The default is the algorithm for the current repository (set by
86 \fBextensions\&.objectFormat\fR), or
88 if no value is set or outside a repository\&.\&.
90 THIS OPTION IS EXPERIMENTAL! SHA\-256 support is experimental and still in an early stage\&. A SHA\-256 repository will in general not be able to share work with "regular" SHA\-1 repositories\&. It should be assumed that, e\&.g\&., Git internal file formats in relation to SHA\-256 repositories may change in backwards\-incompatible ways\&. Only use
91 \fB\-\-object\-format=sha256\fR
92 for testing purposes\&.
96 Part of the \fBgit\fR(1) suite