From: Ævar Arnfjörð Bjarmason Date: Fri, 16 Apr 2021 15:21:18 GMT Subject: Re: [PATCH 02/15] builtin/hash-object: allow literally hashing with a given algorithm Message-ID: <87r1jatfv5.fsf@evledraar.gmail.com> In-Reply-To: <20210410152140.3525040-3-sandals@crustytoothpaste.net> On Sat, Apr 10 2021, brian m. carlson wrote: > @@ -103,6 +110,7 @@ int cmd_hash_object(int argc, const char **argv, const char *prefix) > OPT_BOOL( 0 , "no-filters", &no_filters, N_("store file as is without filters")), > OPT_BOOL( 0, "literally", &literally, N_("just hash any random garbage to create corrupt objects for debugging Git")), > OPT_STRING( 0 , "path", &vpath, N_("file"), N_("process file as it were from this path")), > + OPT_STRING( 0 , "object-format", &object_format, N_("object-format"), N_("Use this hash algorithm")), > OPT_END() Nit: Carrrying the "0 , " v.s. "0, " formatting bug in the "path" option, due to copy/pasting.