From: Phillip Wood <phillip.wood123@gmail.com>
To: Fien Dora <fiendora5@gmail.com>, git@vger.kernel.org
Subject: Re: [Outreachy] Question about check-ref-format test coverage
Date: Sat, 24 Oct 2026 10:48:14 +0100 [thread overview]
Message-ID: <2907524c-4869-4280-949b-e6fb930e57b2@gmail.com> (raw)
In-Reply-To: <CACWAS-X4BqnMa8iJKTakF5E=zYkkyr=qsQ-=c3bxoAJ+Kpcfiw@mail.gmail.com>
Hi Fien
On 23/10/2026 16:29, Fien Dora wrote:
> Hello Everyone,
> I'm called Fien Dora and outreachy applicant for the December 2026
> Cohort. I'm interested in the git project "Improve how command
> arguments and options are scanned and parsed."
> I'm new to open source generally but i'm ready to learn and contribute
>
> I've been getting familiar with the git codebase, I've successfully
> cloned and built Git from the source on my Mac, ran the
> parse-options(96 test) and check-ref-format tests (107 tests), all
> passed.
That's good
> While I was exploring builtin/check-ref-format.c, I noticed that Git
> supports --allow-onelevel and --no-allow-onelevel, but I couldn't find
> any tests of --no-allow-onelevel in the t/ directory.
Yes, "git grep -e --no-allow-onelevel" shows we don't have any tests for
that, adding one would be useful.
> i tried running
>
> ./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.
That's expected because --no-allow-onelevel comes later on the command
line it overrides --allow-onelevel and so we exit 1 because the ref does
not contain a '/' character.
> I've also gone through the list archives and saw an earlier outreachy
> work converting check-ref-format to use parse-options.
It's great that you've checked the archives, be sure to bear in mind the
feedback that was given when you're writing your patch.
> Would adding tests for --allow-onelevel, particularly how it works
> with --no-allow-onelevel be a good contribution for my Outreachy
> microproject?
It sounds like a useful project to me, it is small and self contained
and improves our codebase.
Thanks
Phillip
prev parent reply other threads:[~2026-10-24 9:48 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
2026-10-24 18:37 ` Fien Dora
2026-10-24 9:48 ` Phillip Wood [this message]
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=2907524c-4869-4280-949b-e6fb930e57b2@gmail.com \
--to=phillip.wood123@gmail.com \
--cc=fiendora5@gmail.com \
--cc=git@vger.kernel.org \
--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.