git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Understanding last ~28 bytes of index file
@ 2019-06-13  6:32 Farhan Khan
  2019-06-13 17:09 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Farhan Khan @ 2019-06-13  6:32 UTC (permalink / raw)
  To: git

Hi all,

I am trying to understand how the index (.git/index) file works. When looking through extensions, it loops until it reaches the last 28 bytes (SHA size + 8). This is referenced here. https://github.com/git/git/blob/master/read-cache.c#L1933
What do the last 28 bytes consist of? Where in the source are bytes written?

I am trying to understand how to reproduce the index file and am not sure how this part works.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-13 17:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-13  6:32 Understanding last ~28 bytes of index file Farhan Khan
2019-06-13 17:09 ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).