]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-show-index.txt
Merge branch 'bc/sha-256-part-2'
[thirdparty/git.git] / Documentation / git-show-index.txt
CommitLineData
5f40520f
JH
1git-show-index(1)
2=================
5f40520f
JH
3
4NAME
5----
6git-show-index - Show packed archive index
7
8
9SYNOPSIS
10--------
7791a1d9 11[verse]
88a09a55 12'git show-index' [--object-format=<hash-algorithm>]
5f40520f
JH
13
14
15DESCRIPTION
16-----------
fb3010c3
JK
17Read the `.idx` file for a Git packfile (created with
18linkgit:git-pack-objects[1] or linkgit:git-index-pack[1]) from the
19standard input, and dump its contents. The output consists of one object
20per line, with each line containing two or three space-separated
21columns:
5f40520f 22
fb3010c3
JK
23 - the first column is the offset in bytes of the object within the
24 corresponding packfile
25
26 - the second column is the object id of the object
27
28 - if the index version is 2 or higher, the third column contains the
29 CRC32 of the object data
30
31The objects are output in the order in which they are found in the index
32file, which should be (in a correctly constructed file) sorted by object
33id.
34
35Note that you can get more information on a packfile by calling
36linkgit:git-verify-pack[1]. However, as this command considers only the
37index file itself, it's both faster and more flexible.
5f40520f 38
88a09a55 39OPTIONS
40-------
41
42--object-format=<hash-algorithm>::
43 Specify the given object format (hash algorithm) for the index file. The
44 valid values are 'sha1' and (if enabled) 'sha256'. The default is the
45 algorithm for the current repository (set by `extensions.objectFormat`), or
46 'sha1' if no value is set or outside a repository..
47
5f40520f
JH
48GIT
49---
9e1f0a85 50Part of the linkgit:git[1] suite