97 lines
2.2 KiB
HTML
97 lines
2.2 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of GIT-SHOW-INDEX</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>GIT-SHOW-INDEX</H1>
|
|
Section: Git Manual (1)<BR>Updated: 03/04/2021<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
git-show-index - Show packed archive index
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
<PRE>
|
|
<I>git show-index</I>
|
|
</PRE>
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
Read the <B>.idx</B> file for a Git packfile (created with <B><A HREF="/cgi-bin/man/man2html?1+git-pack-objects">git-pack-objects</A></B>(1) or <B><A HREF="/cgi-bin/man/man2html?1+git-index-pack">git-index-pack</A></B>(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:
|
|
<P>
|
|
<DL COMPACT><DT id="1"><DD>
|
|
•
|
|
|
|
|
|
the first column is the offset in bytes of the object within the corresponding packfile
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
•
|
|
|
|
|
|
the second column is the object id of the object
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
•
|
|
|
|
|
|
if the index version is 2 or higher, the third column contains the CRC32 of the object data
|
|
</DL>
|
|
|
|
<P>
|
|
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.
|
|
<P>
|
|
Note that you can get more information on a packfile by calling <B><A HREF="/cgi-bin/man/man2html?1+git-verify-pack">git-verify-pack</A></B>(1). However, as this command considers only the index file itself, it's both faster and more flexible.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>GIT</H2>
|
|
|
|
<P>
|
|
Part of the <B><A HREF="/cgi-bin/man/man2html?1+git">git</A></B>(1) suite
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="4"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="5"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="6"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="7"><A HREF="#lbAE">GIT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:14 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|