git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* verifying git file contents without checking out history?
@ 2012-11-19  1:50 Marc Weber
  2012-11-19  4:55 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Weber @ 2012-11-19  1:50 UTC (permalink / raw)
  To: git

git clone --depth=20 $url; git checkout $hash

How to verify that I have the contents I think I have - given that I
trust my local git executable?

Would it be enough to also store the git log --pretty=format:%T $hash
value and check that only? %T is the root tree hash.

Does git checkout verify the file tree checksum when receiving all blob
objects from a server?
Then verifying that %T didn't change should be enough to enable me
fetching sources and trust them without running git fsck which would
fetch all history.

Marc Weber

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

end of thread, other threads:[~2012-11-19  5:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-19  1:50 verifying git file contents without checking out history? Marc Weber
2012-11-19  4:55 ` Junio C Hamano
2012-11-19  5:32   ` Marc Weber

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