From: Kaartic Sivaraam Date: Thu, 03 Dec 2026 13:50:00 GMT Subject: Re: [PATCH v2 6/7] commit-graph: introduce common exit for `write_commit_graph_file()` Message-ID: In-Reply-To: <20261120-pks-odb-pluggable-commit-graphs-v2-6-31f2341a9932@pks.im> On 11/20/26 17:52, Patrick Steinhardt wrote: > In the next commit we're going to refactor `write_commit_graph_file()`. > As part of that refactoring we'll perform a couple more allocations in > this function that need to be cleaned up on exit. > > Prepare for this by introducing a common exit path now already, as that > will make the diff a tiny bit easier to read. > The change itself looks neat. I just wonder if it would be worth mentioning in the commit message that we also rollback the lockfile more promptly in case of an error. Not a blocker per se. -- Sivaraam