diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-06-28 14:40:57 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-28 14:40:57 -0700 |
commit | ec40f134aa677499a0c1bf7ea6133b7b5fe348c4 (patch) | |
tree | ccfbc4d2f3b9dbf94015ba91975a7166105221f7 /git-show-index.txt | |
parent | 7578608bd24d16e08ff2c765d8e2aada854fee57 (diff) | |
download | git-htmldocs-ec40f134aa677499a0c1bf7ea6133b7b5fe348c4.tar.gz |
Autogenerated HTML docs for v2.18.0-129-ge3331
Diffstat (limited to 'git-show-index.txt')
-rw-r--r-- | git-show-index.txt | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/git-show-index.txt b/git-show-index.txt index a8a9509e0..424e4ba84 100644 --- a/git-show-index.txt +++ b/git-show-index.txt @@ -14,13 +14,27 @@ SYNOPSIS DESCRIPTION ----------- -Read the idx file for a Git packfile created with -'git pack-objects' command from the standard input, and -dump its contents. +Read the `.idx` file for a Git packfile (created with +linkgit:git-pack-objects[1] or linkgit: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 information it outputs is subset of what you can get from -'git verify-pack -v'; this command only shows the packfile -offset and SHA-1 of each object. + - the first column is the offset in bytes of the object within the + corresponding packfile + + - the second column is the object id of the object + + - if the index version is 2 or higher, the third column contains the + CRC32 of the object data + +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 +linkgit:git-verify-pack[1]. However, as this command considers only the +index file itself, it's both faster and more flexible. GIT --- |