From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.176 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796305805; b=q/oVoQXlooJyZZ7J7XtoWF0DDjUXUqeTnhWHK3nMYtV1J+STizdBNeOCKBIF+7h0wSgM nKfLjb+2rgBqI4CY30yOX7rZdnHqUNjvifMPV2IPdH6Bo4IYNYjkPF7RVJIP0I+idevfq UURi/y87SuaKbPtTmwMNsYVwoHNZrWeM97SVOXszYun01LYALEQ5IDhGrUIqgtruUrg2J kTqblrG3douV61IK96qzLXpRt1xgquERreIht/vujzQobtAz/w0Q7XV3ICnk6gWTc7W0x j0IehDP9Q1eQo900K7HPeDjGGk6ROhAY3K6r51GLiUO8XSzJ6auTwhWvkw5QZOt0d5A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796305805; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=fmre77JVgTZTfxyrSlZY6cSifdCK0yJNXxLDM+XwL0Y=; b=t5XMTn5B1LeIgLMvrJLPWRz8lBmXiXxMha/70MYDR43TY9y44JPYlV4upzimXCMPTUwU TAPzkDT0koSjEAXgK+F0mF2aHPjN3h4yL/B/NFd1y+AKsPcYSuiu3CNd39OBkIXaYZrxH AhG1yFASz7QadSvpZhJ7WWG3HX43BGlg5iMRVo0JN0i7w/eWdkWJeThIuC4hk3t+LdAzI 3TeR2V0SMo8dF+lz7P35pUkNwWnHHDtlgSmi3ofJSjs1Oa1nIODXnGu9UFB/YA9ayGEaZ AMRla4nQHT1h5dlOHP0mrk/JUK/ZxE4F5225qDRQqZDfBpgBH4tON2pezcbEcYgnVlw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=pgxEWyaJ; arc=none smtp.remote-ip=209.85.210.176 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE454606A322 for ; Thu, 3 Dec 2026 13:50:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CE454606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=pgxEWyaJ Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-8b58d6f67a5so7258866b3a.2 for ; Thu, 03 Dec 2026 05:50:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796305804; x=1796910604; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=fmre77JVgTZTfxyrSlZY6cSifdCK0yJNXxLDM+XwL0Y=; b=pgxEWyaJRyTMeuUZPTEP54EasacJJrfUeWMjGQ26tP83qawTn3ft21LMzTVdg6whRT NBaCCznUzwtYZO0GTAB/e6cVei9euhg/aZOTt9PhUdQAaWpSz5WOzBWtX6kQhLqqYTCu m4oMo2oQXy5IN2cxjVxbg/HLYYGi43zeXQyl3zT3+R043occbt4U/3/eSpR0brIC4y2G oXQy49jrPs6y0yT5ezWx98H0etri4oUy8AFwAKBR2sHtnGxvAk+B/iui3A6Kl0YNVccS d6cH+nMmy/VRHeSo6XRK5eRIgkhkApMhSRjSl9i9paq6qmpj6nppsszfQCxntmlOXXt+ dLZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796305804; x=1796910604; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=fmre77JVgTZTfxyrSlZY6cSifdCK0yJNXxLDM+XwL0Y=; b=lhiFdjBqrttOUzzMxchZ6HFDN7WfQALgWcedSn5kfAO/GWsSgYnHGZwBDPPnPvjNKW eMMhadrwxTVsqaiPD4d35EzbYzNyNzd5Ua0B8R5hgL0sYzwT2fN4/Xn/soi7fMq/Wc53 AJN0NUyUpSfN5Ll9O92Wn8rOJwXVAY/dqdl0NeyY8D7nv22PyiUe+kigHyiMx8U6VtvT F0TMdyednlKaAq53REmgUUlQpI7o9Y6iNR1Jvqmk4K0rGracTyx/r0xzcUeZTd0AgKyl v52id7i6AxZU/CqeYyIEhbLigFqBL9kL/pc3LG8t4vIMJVNLoGEJiNKKLVyRXDW/el6Y mGCA== X-Forwarded-Encrypted: i=1; AL+hErFqW8FKOFHaIkzjOYdvtLQ63q8qibV5/Guh2SGYosB6qm6FfEvHmAAeD942y2Rencw/tGI=@vger.kernel.org X-Gm-Message-State: APuU4Z975bXoM1Gap42LOI2R2/39yrfeNBDlEfF5/pVnwgKXrVri1S8W VjsIsShbyA5vO5CvbtPvfopFEVttsi/q2bZlNTk+grUkGFeEOJR9KPSV X-Gm-Gg: AZFdTZeujU6QXiIxW7UvJOQQ7QpWyprXcJrGoYtG96RZlRFCgpp1/bXUH9tO4xUhTav ffcmsW17z6R7KycHW9lmbLVZiJ6mqSlkObZztJME53MEgzhLfEU7EGKbCJMpx4GoO9cvNI53R01 B//ZDyJk3S+9gi3BTutnDKNr6rlTLTpTLFCmYtINj4JWPBaFMXBdYWS4bSGQu12h/QclwPJrDQW 7NDoMK/6TrgSq+yEJ3EA9cirMR4IQlAUZWTVsn//bLEYsm3SydKyyykWE7Pi8TOic+cv4k18F96 28//F6IptRY8CR44925PbTMiHo+jskq6igv0bFwlWaVhJnmemcCqJru1cnWRLWPnSR0XKhQMbzw rJqpz0Kby7s6K8U32DxUlb4IIqFGwIR8XN0pmWv1aJxnzuvlBubKOZ4ahOg5AVZa22sR/6I0Egl Hqx/v/b4xaT+dXATP3NXpRABWe1J5608JcWf0LOLoJsHNIiqFizjSXgfs4rv9K1PI0Yq9ndPqJm 35rEC8hEixU5uMk1EtrdDupUAlT0QtB3yx+GeRgygm6BP/V5ML38zAr3mwocNOLIONlegDD+0EN +LJ56/KQcVmTc6Oh1//XqGqniy8vTYFyKR3UW1EppR1oHSBSFQUXvymuNcBz19Ma X-Received: by 2002:a05:6a00:1c97:b0:8b5:7fc8:866f with SMTP id d2e1a72fcca58-8c87d32b004mr40353511b3a.44.1796305803949; Thu, 03 Dec 2026 05:50:03 -0800 (PST) Received: from [192.168.1.34] ([103.215.237.233]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c87285c263sm23816492b3a.11.2026.12.03.05.50.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 05:50:03 -0800 (PST) Message-ID: Date: Thu, 3 Dec 2026 19:20:00 +0530 X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 6/7] commit-graph: introduce common exit for `write_commit_graph_file()` To: Patrick Steinhardt Cc: Junio C Hamano , git@vger.kernel.org References: <20261120-pks-odb-pluggable-commit-graphs-v2-0-31f2341a9932@pks.im> <20261120-pks-odb-pluggable-commit-graphs-v2-6-31f2341a9932@pks.im> Content-Language: en-US From: Kaartic Sivaraam In-Reply-To: <20261120-pks-odb-pluggable-commit-graphs-v2-6-31f2341a9932@pks.im> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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