git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* checking sha1's of files
@ 2009-02-08  9:39 Caleb Cushing
  2009-02-08  9:58 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Caleb Cushing @ 2009-02-08  9:39 UTC (permalink / raw)
  To: git

I need to check the hashes of specific files in the repo in an
automated fashion, in another tool.

to be less vague currently gentoo's portage tree has manifests for
each file in the tree, on funtoo and regen2 (forks) we've imported the
tree into git. Git has all the manifesting that's needed (most of it,
still doesn't help with files outside the tree) in it. I'd like to be
able to remove manifests from the tree, however I still want to check
that the ebuilds (package format) are consistent at run time. Checking
the entire tree is not sane.

I figure the best way to do this is to first check stat against the
index, then, if that passes check the sha1, if that passes continue to
the next step.

I don't want to do anything like determine the output of a git command
in my code, I'd rather check to see if the check passed or failed
using return codes or some such. If it is capable of checking these
but would require me to parse output I'd still like to know, as it may
let me get the fix in faster, and I can do better later.

I know git may not be currently capable of this behavior, which means
I should extend it, or even write a new program to deal with it. If
this is the case, is there any documentation on how git does this?
aside from the source? could someone point me in the general direction
of source files I should be looking at? maybe even specific functions?

any help with this endeavor of any kind would be appreciated as the
manifests 'cause the repo to balloon, not to mention are just a pain
to manage as they can't actually be merged.
-- 
Caleb Cushing

http://xenoterracide.blogspot.com

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

end of thread, other threads:[~2009-02-08 12:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-08  9:39 checking sha1's of files Caleb Cushing
2009-02-08  9:58 ` Junio C Hamano
2009-02-08 10:53   ` Caleb Cushing
2009-02-08 11:13     ` Jeff King
2009-02-08 12:22       ` Caleb Cushing
2009-02-08 12:27         ` Jeff King
2009-02-08 12:57           ` Caleb Cushing

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