[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] [ -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 --- 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.