blob: 424e4ba84cf9b0444a41f0a163de0a58a6ac378a [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-show-index(1)
2=================
3
4NAME
5----
6git-show-index - Show packed archive index
7
8
9SYNOPSIS
10--------
Junio C Hamano15567bc2011-07-23 00:51:5911[verse]
Junio C Hamanodaf0aae2015-10-26 23:14:3012'git show-index'
Junio C Hamano1a4e8412005-12-27 08:17:2313
14
15DESCRIPTION
16-----------
Junio C Hamanoec40f132018-06-28 21:40:5717Read 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:
Junio C Hamano1a4e8412005-12-27 08:17:2322
Junio C Hamanoec40f132018-06-28 21:40:5723 - 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.
Junio C Hamano1a4e8412005-12-27 08:17:2338
Junio C Hamano1a4e8412005-12-27 08:17:2339GIT
40---
Junio C Hamanof7c042d2008-06-06 22:50:5341Part of the linkgit:git[1] suite