git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: checking sha1's of files

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 8, 2009, 09:58 UTC
Message-ID
<7veiy9z1v8.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<81bfc67a0902080139j1331d967g34bfc18f4068e443@mail.gmail.com>
Caleb Cushing <xenoterracide@gmail.com> writes:
> I need to check the hashes of specific files in the repo in an
> automated fashion, in another tool.
What "hash" are you talking about?  sha1?  md5?  crc?

I *think* you are trying to say that gentoo has a tool to compute some sort of hash for regular files in their source tree by:

	"gentoo's portage tree has manifests for each file"

but without knowing what kind of hash they use, I cannot tell you if you can reuse some part of git to compute their hash without using their tools (it also is unclear why you are not using their tool to compute their hash and instead are expecting git to know about the specific hash function used by them).

For exammple,
	"sha1sum Makefile"

would give you the SHA-1 checksum of the contents of the Makefile. Is that what gentoo's tools expect? If that is the case, that is different from the blob object name git will give to the contents of that Makefile, so you cannot reuse much of git.

Previous: Caleb CushingNext: Caleb Cushing
Message 2 of 7 in “checking sha1's of files”
  1. Caleb CushingFeb 8, 2009
  2. Junio C HamanoFeb 8, 2009
  3. Caleb CushingFeb 8, 2009
  4. Jeff KingFeb 8, 2009
  5. Caleb CushingFeb 8, 2009
  6. Jeff KingFeb 8, 2009
  7. Caleb CushingFeb 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.