test-lib: extract Bash version check for '-x' tracing
[git.git] / Documentation / git-show-index.txt
blob424e4ba84cf9b0444a41f0a163de0a58a6ac378a
1 git-show-index(1)
2 =================
4 NAME
5 ----
6 git-show-index - Show packed archive index
9 SYNOPSIS
10 --------
11 [verse]
12 'git show-index'
15 DESCRIPTION
16 -----------
17 Read the `.idx` file for a Git packfile (created with
18 linkgit:git-pack-objects[1] or linkgit:git-index-pack[1]) from the
19 standard input, and dump its contents. The output consists of one object
20 per line, with each line containing two or three space-separated
21 columns:
23   - the first column is the offset in bytes of the object within the
24     corresponding packfile
26   - the second column is the object id of the object
28   - if the index version is 2 or higher, the third column contains the
29     CRC32 of the object data
31 The objects are output in the order in which they are found in the index
32 file, which should be (in a correctly constructed file) sorted by object
33 id.
35 Note that you can get more information on a packfile by calling
36 linkgit:git-verify-pack[1]. However, as this command considers only the
37 index file itself, it's both faster and more flexible.
39 GIT
40 ---
41 Part of the linkgit:git[1] suite