Re: [PATCH 31/41] wt-status: convert two uses of EMPTY_TREE_SHA1_HEX
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- May 1, 2018, 02:29 UTC
- Message-ID
- <20180501022931.GF13217@genre.crustytoothpaste.net>
- In-Reply-To
- <CAN0heSpoe7SgNZnYDHXS7ByMmh3TH+exaS40btK7pq21MZ3cEA@mail.gmail.com>
On Tue, Apr 24, 2018 at 12:03:35PM +0200, Martin Ågren wrote:
Show 5 quoted lines
> Just a thought: Maybe it would make sense to have a function > `oid_hex_empty_tree()` or similar to replace the > oid_to_hex[_r](the_hash_algo->empty_tree) idiom. It would help avoid the > buffer here, but also get rid of a few instances of code peeking into > the_hash_algo. I dunno.
At first I wasn't going to include this change in the series, but then I thought about what a good idea it was and decided to redo the corresponding patches. So I hope to have a v2 out tomorrow with this change (and the rest of them) in it.
-- brian m. carlson: Houston, Texas, US OpenPGP: https://keybase.io/bk2204