# Understanding DIRC section of .git/index

1 messages from 2019-06-19 to 2019-06-19. Participants: Farhan Khan.
Thread: https://gitlist.dev/t/51344

## Farhan Khan, 2019-06-19 21:37

Subject: Understanding DIRC section of .git/index
Message-ID: <d6baf00c68fa166601c2beb74cd2040b@farhan.codes>
URL: https://gitlist.dev/e/d6baf00c68fa166601c2beb74cd2040b%40farhan.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

```
