All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phillip Wood <phillip.wood123@gmail.com>
To: Harald Nordgren <haraldnordgren@gmail.com>,
	Fien Dora <fiendora5@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [Outreachy] Question about check-ref-format test coverage
Date: Sat, 24 Oct 2026 10:52:29 +0100	[thread overview]
Message-ID: <bd00b525-6e05-4c17-91ef-3d9c80ff2784@gmail.com> (raw)
In-Reply-To: <CAHwyqnXEC7cFijGWATqfA+fBcn09UoNPBDA17GYEY4P8mS0fWA@mail.gmail.com>

On 23/10/2026 16:53, Harald Nordgren wrote:
>>
>> ./git check-ref-format --allow-onelevel foo
>>
>> ./git check-ref-format --allow-onelevel --no-allow-onelevel foo
>>
>> it returned with an exit code of 0 and 1 respectively.
> 
> `--allow-onelevel´ and ´--no-allow-onelevel´ are contradictory
> options, and shouldn't be run together, so that's likely why it failed
> with exit code 1.
>
> This is true for any `--xyz´ and ´--no-xyz´ options.

Our commands allow "--no-xyz" to override "--xyz" which is useful when 
an alias includes "--xyz" and you want to use the alias without that 
option. The second command above exits 1 because "foo" is a one-level 
ref and we've passed "--no-allow-onelevel" which overrides the earlier 
"--allow-onelevel"

Thanks

Phillip


  reply	other threads:[~2026-10-24  9:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23 15:29 [Outreachy] Question about check-ref-format test coverage Fien Dora
2026-10-23 15:53 ` Harald Nordgren
2026-10-24  9:52   ` Phillip Wood [this message]
2026-10-24 18:37     ` Fien Dora
2026-10-24  9:48 ` Phillip Wood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bd00b525-6e05-4c17-91ef-3d9c80ff2784@gmail.com \
    --to=phillip.wood123@gmail.com \
    --cc=fiendora5@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=haraldnordgren@gmail.com \
    --cc=phillip.wood@dunelm.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.