From: Patrick Steinhardt Date: Mon, 06 May 2024 06:47:54 GMT Subject: Re: [PATCH v3] refs: return conflict error when checking packed refs Message-ID: In-Reply-To: On Sat, May 04, 2024 at 03:04:08AM +0000, Ivan Tse via GitGitGadget wrote: > From: Ivan Tse > > The TRANSACTION_NAME_CONFLICT error code refers to a failure to create a > ref due to a name conflict with another ref. An example of this is a > directory/file conflict such as ref names A/B and A. > > "git fetch" uses this error code to more accurately describe the error > by recommending to the user that they try running "git remote prune" to > remove any old refs that are deleted by the remote which would clear up > any directory/file conflicts. > > This helpful error message is not displayed when the conflicted ref is > stored in packed refs. This change fixes this by ensuring error return > code consistency in `lock_raw_ref`. > > Signed-off-by: Ivan Tse This version looks good to me, thanks! Patrick