git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Calculate packfile and idxfile checksums
@ 2019-01-18  7:24 Farhan Khan
  2019-01-18  8:36 ` Ævar Arnfjörð Bjarmason
  0 siblings, 1 reply; 3+ messages in thread
From: Farhan Khan @ 2019-01-18  7:24 UTC (permalink / raw)
  To: Git Mailing List

Hi all,

I am trying to understand how git's index-pack works, particularly how
it calculates the packfile checksum and idxfile checksum. I traced
back the packfile checksum in the source to the value char *sha1 that
is utilized in write_idx_file() in pack_file.c:45. However, I cannot
determine where this value is set.

My printf() debugging has it set at pack-write.c:171 (right before the
hashwrite call) but it does not seem to be utilized prior to that
point. Please assist.

Thanks!
--
Farhan Khan
PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE

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

end of thread, other threads:[~2019-01-18 23:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-18  7:24 Calculate packfile and idxfile checksums Farhan Khan
2019-01-18  8:36 ` Ævar Arnfjörð Bjarmason
2019-01-18 23:51   ` Farhan Khan

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 NNTP newsgroup(s).