From: "Jonathan Nieder" <jrnie...@gmail.com>
Philip Oakley wrote:
Does `hash-object` do the inverese of `cat-file commit`?
I didn't find the hash-object(1) man page very informative on that
Hm. The manpage says:
Computes the object ID value for an object with specified type
with the contents of the named file [...], and optionally writes
the resulting object into the object database.
Actually write the object into the object database.
Any ideas for making this clearer?
The problem is the file format, in the sense that the earlier `git
cat-file commit $orig` has a human readable output which is a
description of the commit header, rather than the specific binary
content. I couldn't tell if the command would cope with such a human
In Christian's quick untested script he'd matched the two commands as
opposites, which doesn't appear to be the case, and I'm somewhat
ignorant of what hash-object is doing - I'd expect that it simply hashed
the already constructed data, but my ignorance starts showing at this
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html