From: Karthik Nayak Date: Wed, 12 Jun 2024 09:29:21 GMT Subject: Re: [PATCH v2 0/3] config: fix segfault when parsing "core.abbrev" without repo Message-ID: In-Reply-To: Patrick Steinhardt writes: > Hi, > > this is the second version of my patch series that fixes a segfault when > parsing "core.abbrev" without a repository. > > Changes compared to v1: > > - Stop truncating the abbreviation length to the upper boundary > completely. It's unnecessary, complicates the code and makes us > dependent on `the_repository`. > > - Adapt `parse_opt_abbrev_cb()` to also stop truncating such that the > behaviour of "core.abbrev" and `--abbrev` is the same. > > - Extend test coverage a bit. > > Thanks! > > Patrick The changes look good, I wasn't expecting a benchmark in the last commit for such a small change, but that was nice to see. Thanks. [snip]