Skip to contentSkip to conversation

Understanding DIRC section of .git/index

DISCUSSION Farhan Khan 1 participant 1 message Jun 19, 2019

lore
Share & tools
lore
#0 lore raw

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