From: Christian Couder Date: Thu, 18 Apr 2024 14:52:39 GMT Subject: Re: [PATCH v2 3/7] update-ref: add support for symref-delete Message-ID: In-Reply-To: <20240412095908.1134387-4-knayak@gitlab.com> On Fri, Apr 12, 2024 at 11:59 AM Karthik Nayak wrote: > > From: Karthik Nayak > > Similar to the previous commit, add 'symref-delete' to allow deletions > of symbolic refs in a transaction via the 'git-update-ref' command. The > 'symref-delete' command can when given with an , deletes the > provided only when it points to . I have a similar question as with the previous patch about what happens if looks like an oid and is a regular ref pointing to it. > Signed-off-by: Karthik Nayak > diff --git a/Documentation/git-update-ref.txt b/Documentation/git-update-ref.txt > index 749aaa7892..ef22a1a2f4 100644 > --- a/Documentation/git-update-ref.txt > +++ b/Documentation/git-update-ref.txt > @@ -65,6 +65,7 @@ performs all modifications together. Specify commands of the form: > create SP SP LF > delete SP [SP ] LF > verify SP [SP ] LF > + symref-delete SP [SP ] LF > symref-verify SP [SP ] LF > option SP LF > start LF > @@ -87,6 +88,7 @@ quoting: > create SP NUL NUL > delete SP NUL [] NUL > verify SP NUL [] NUL > + symref-delete SP [NUL ] NUL > symref-verify SP [NUL ] NUL > option SP NUL > start NUL Also I wonder if there is a test where is an empty string, so where: symref-delete SP SP LF or: symref-delete SP NUL NUL are used?