Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-show-index(1) |
| 2 | ================= |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | git-show-index - Show packed archive index |
| 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Junio C Hamano | 15567bc | 2011-07-23 00:51:59 | [diff] [blame] | 11 | [verse] |
Junio C Hamano | daf0aae | 2015-10-26 23:14:30 | [diff] [blame] | 12 | 'git show-index' |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 13 | |
| 14 | |
| 15 | DESCRIPTION |
| 16 | ----------- |
Junio C Hamano | ec40f13 | 2018-06-28 21:40:57 | [diff] [blame] | 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: |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 22 | |
Junio C Hamano | ec40f13 | 2018-06-28 21:40:57 | [diff] [blame] | 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 | |
| 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. |
| 34 | |
| 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. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 38 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 39 | GIT |
| 40 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 41 | Part of the linkgit:git[1] suite |