[resend] [PATCH] Add -i option to cat-file to allow operation on displaced git object files

From: Jon Seymour <jon.seymour@gmail.com>
Date: 2005-04-24 04:48:29
[PATCH] Add -i option to cat-file to allow operation on displaced git
object files

For the purposes of merging the contents of remote git object
repositories at the filesystem level, it would  be helpful to be able
to verify the integrity of a remote git object file before it is
actually copied into the local repository.

To enable this, the option syntax for the usage of the cat-file tool
is extended with a -i option, per the modified usage string quoted
below:

    usage: cat-file [-t | tagname] <sha1> [ -i displaced-git-object-file ]

If the -i option is specified, cat-file uses the filename specified on
the command line rather than the derived filename to locate and
process the git object file implied by the sha1 argument.

In addition, the -i option forces cat-file to check the SHA1 signature
of the specified input file against the SHA1 signature specified on
the command line and report an error if there is a mismatch.

Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
---
Sorry, I noticed after the fact that gmail had line-wrapped my patch,
so I am resending the patch as a text attachment. If it is not
acceptable to post patches in this form please let me know.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Received on Sun Apr 24 04:51:14 2005

This archive was generated by hypermail 2.1.8 : 2005-04-24 04:51:14 EST