Git development
 help / color / mirror / Atom feed
From: "Farhan Khan" <farhan@farhan.codes>
To: git@vger.kernel.org
Subject: Understanding DIRC section of .git/index
Date: Wed, 19 Jun 2019 21:37:09 +0000	[thread overview]
Message-ID: <d6baf00c68fa166601c2beb74cd2040b@farhan.codes> (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

                 reply	other threads:[~2019-06-19 21:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d6baf00c68fa166601c2beb74cd2040b@farhan.codes \
    --to=farhan@farhan.codes \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox