git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Technical details about the index file format.

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 11, 2008, 19:27 UTC
Message-ID
<7vr6fj8fa0.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1202711335-12026-1-git-send-email-robin.rosenberg@dewire.com>
Robin Rosenberg <robin.rosenberg@dewire.com> writes:
Show 7 quoted lines
> Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
> ---
>  Documentation/technical/index-format.txt |   91 ++++++++++++++++++++++++++++++
>  1 files changed, 91 insertions(+), 0 deletions(-)
>  create mode 100644 Documentation/technical/index-format.txt
>
> I believe the main index details are accurate. Anything else to explain.

You missed the most important feature. The entries are sorted in a particular order.

Also I do not think we store CE_UPDATE. The tip of 'master' will soon clarify about this.

Also when a name is longer than 12-bit can express, we will have a constant there and the name length could be longer (you need to strlen() it). The tip of 'master' will soon have this fix (we used to just overrun).

Other than these, I think the description is fairly accurate.
Previous: Tim StoakesNext: Sverre Rabbelier
Message 3 of 9 in “Technical details about the index file format.”
  1. Technical details about the index file format.Robin Rosenberg, Feb 11, 2008
  2. Tim StoakesFeb 11, 2008
  3. Junio C HamanoFeb 11, 2008
  4. Sverre RabbelierAug 31, 2010
  5. Ramkumar RamachandraAug 31, 2010
  6. Jonathan NiederAug 31, 2010
  7. Nguyen Thai Ngoc DuyAug 31, 2010
  8. Sverre RabbelierSep 1, 2010
  9. Nguyen Thai Ngoc DuySep 1, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.