1GIT-SHOW-INDEX(1) Git Manual GIT-SHOW-INDEX(1)
2
3
4
6 git-show-index - Show packed archive index
7
9 git show-index [--object-format=<hash-algorithm>]
10
12 Read the .idx file for a Git packfile (created with git-pack-objects(1)
13 or git-index-pack(1)) from the standard input, and dump its contents.
14 The output consists of one object per line, with each line containing
15 two or three space-separated columns:
16
17 • the first column is the offset in bytes of the object within the
18 corresponding packfile
19
20 • the second column is the object id of the object
21
22 • if the index version is 2 or higher, the third column contains the
23 CRC32 of the object data
24
25 The objects are output in the order in which they are found in the
26 index file, which should be (in a correctly constructed file) sorted by
27 object id.
28
29 Note that you can get more information on a packfile by calling git-
30 verify-pack(1). However, as this command considers only the index file
31 itself, it’s both faster and more flexible.
32
34 --object-format=<hash-algorithm>
35 Specify the given object format (hash algorithm) for the index
36 file. The valid values are sha1 and (if enabled) sha256. The
37 default is the algorithm for the current repository (set by
38 extensions.objectFormat), or sha1 if no value is set or outside a
39 repository..
40
41 Note: At present, there is no interoperability between SHA-256
42 repositories and SHA-1 repositories.
43
44 Historically, we warned that SHA-256 repositories may later need
45 backward incompatible changes when we introduce such interoperability
46 features. Today, we only expect compatible changes. Furthermore, if
47 such changes prove to be necessary, it can be expected that SHA-256
48 repositories created with today’s Git will be usable by future versions
49 of Git without data loss.
50
52 Part of the git(1) suite
53
54
55
56Git 2.43.0 11/20/2023 GIT-SHOW-INDEX(1)