Re: [PATCH 03/15] rev-parse: add an --object-format option
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Oct 8, 2019, 19:31 UTC
- Message-ID
- <20191008193104.xepgqzqvftsixkpo@camp.crustytoothpaste.net>
- In-Reply-To
- <3cb91b69-7d33-12ab-de37-175592f95df7@gmail.com>
On 2019-10-08 at 11:51:45, Derrick Stolee wrote:
Show 6 quoted lines
> On 10/5/2019 5:11 PM, brian m. carlson wrote: > > Add an option to print the object format used for input, output, or > > storage. This allows shell scripts to discover the hash algorithm in > > use. > > Why put this in 'rev-parse'? Is a test helper not an option for this?
We do have a test helper for this, which is the first patch in the series. This rev-parse option is designed to be useful to scripters more than anything else, and it will make an appearance in a later series.
I sent it here since it's vaguely useful for tests and I also wanted to make sure it was available sooner rather than later so folks can start using it.
-- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204