table of contents
GIT-SHOW-INDEX(1) | Git Manual | GIT-SHOW-INDEX(1) |
NAME¶
git-show-index - Show packed archive index
SYNOPSIS¶
git show-index [--object-format=<hash-algorithm>]
DESCRIPTION¶
Read the .idx file for a Git packfile (created with git-pack-objects(1) or git-index-pack(1)) from the standard input, and dump its contents. The output consists of one object per line, with each line containing two or three space-separated columns:
The objects are output in the order in which they are found in the index file, which should be (in a correctly constructed file) sorted by object id.
Note that you can get more information on a packfile by calling git-verify-pack(1). However, as this command considers only the index file itself, it’s both faster and more flexible.
OPTIONS¶
--object-format=<hash-algorithm>
Note: At present, there is no interoperability between SHA-256 repositories and SHA-1 repositories.
Historically, we warned that SHA-256 repositories may later need backward incompatible changes when we introduce such interoperability features. Today, we only expect compatible changes. Furthermore, if such changes prove to be necessary, it can be expected that SHA-256 repositories created with today’s Git will be usable by future versions of Git without data loss.
GIT¶
Part of the git(1) suite
11/20/2023 | Git 2.43.0 |