1GIT-SHOW-INDEX(1)                 Git Manual                 GIT-SHOW-INDEX(1)
2
3
4

NAME

6       git-show-index - Show packed archive index
7

SYNOPSIS

9       git show-index [--object-format=<hash-algorithm>]
10

DESCRIPTION

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

OPTIONS

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           THIS OPTION IS EXPERIMENTAL! SHA-256 support is experimental and
42           still in an early stage. A SHA-256 repository will in general not
43           be able to share work with "regular" SHA-1 repositories. It should
44           be assumed that, e.g., Git internal file formats in relation to
45           SHA-256 repositories may change in backwards-incompatible ways.
46           Only use --object-format=sha256 for testing purposes.
47

GIT

49       Part of the git(1) suite
50
51
52
53Git 2.39.1                        2023-01-13                 GIT-SHOW-INDEX(1)
Impressum