git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sha-1 check in rev-list --verify-objects redundant?
@ 2012-02-25 17:15 Nguyen Thai Ngoc Duy
  2012-02-26  8:30 ` Junio C Hamano
  0 siblings, 1 reply; 9+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2012-02-25 17:15 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git Mailing List

Hi,

"git rev-list --verify-objects" calls parse_object() on all except
commits. This function in turn does check_sha1_signature() which
rehashes object content to verify the content matches its sha-1
signature. This is an expensive operation. I wonder if this is a
redundant check. --verify-objects is called to verify new packs.
index-pack is also (always?) called on new packs, and index-pack
hashes all object content, saves the hashes as signature in pack index
file. So they must match. Am I missing something here?
-- 
Duy

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

end of thread, other threads:[~2012-02-27 18:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-25 17:15 sha-1 check in rev-list --verify-objects redundant? Nguyen Thai Ngoc Duy
2012-02-26  8:30 ` Junio C Hamano
2012-02-26  9:11   ` Junio C Hamano
2012-02-26 11:11   ` Nguyen Thai Ngoc Duy
2012-02-26 21:37     ` Junio C Hamano
2012-02-27  0:48       ` Nguyen Thai Ngoc Duy
2012-02-27  1:23         ` Junio C Hamano
2012-02-27 13:01     ` Nguyen Thai Ngoc Duy
2012-02-27 18:41       ` Junio C Hamano

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).