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

Understanding DIRC section of .git/index

From
Farhan Khan <farhan@farhan.codes>
Date
Jun 19, 2019, 21:37 UTC
Message-ID
<d6baf00c68fa166601c2beb74cd2040b@farhan.codes>
Hi all,
I am trying to understand how the DIRC section works, specifically the "index entry" section. Can someone point to where in the code index files are generated? I am having trouble locating the exact place.
The documentation (Documentation/technical/index-format.txt) suggests that the code does the equivalent of stat() a file, then write the data into the index file. Is this accurate? Is there any htonl() bit rearrangement? What about for the mode or flags?
Thanks,

--- Farhan Khan PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE

Message 1 of 1 in “Understanding DIRC section of .git/index”
  1. Farhan KhanJun 19, 2019

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.