🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #1300

[Outreachy] Question about check-ref-format test coverage

#1300
From: Fien Dora
Date: Fri, 23 Oct 2026 15:29
35 lines
12194 bytes
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.

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.

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.


I've also gone through the list archives and saw an earlier outreachy
work converting check-ref-format to use parse-options.


Would adding tests for --allow-onelevel, particularly how it works
with --no-allow-onelevel be a good contribution for my Outreachy
microproject?

I look forward for any guidance
Technical Details
Message-ID: <CACWAS-X4BqnMa8iJKTakF5E=zYkkyr=qsQ-=c3bxoAJ+Kpcfiw@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73053-linux-kernel-git=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73053-linux-kernel-git=dewy.ru
From: fiendora5@gmail.com (Fien Dora)
Newsgroups: linux.kernel.git
Subject: [Outreachy] Question about check-ref-format test coverage
Date: Fri, 23 Oct 2026 16:29:12 +0100
Organization: Usenet Network
Message-ID: <CACWAS-X4BqnMa8iJKTakF5E=zYkkyr=qsQ-=c3bxoAJ+Kpcfiw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: usenet.network;
	logging-data="536407"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:48lFQ65DSbIUSnIQsBhhbaMJJrg= sha256:C4HFfZp439gvnEbZTKVXSxD6HkosjQO4S/VBIr3u5lg=
	sha1:kt/wby8Wf87o4d6NiJqSSra2/bY= sha256:H0eOVBVT0U6u7dk95xJzoV7wMncNs1P6Ym8ek8MKVOw=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id B157B11150D; Fri, 23 Oct 2026 18:33:05 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id bGdcPyrLr8Q8;
	Fri, 23 Oct 2026 18:32:58 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-73053-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 9462411150C; Fri, 23 Oct 2026 18:32:50 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 1596038735; Fri, 23 Oct 2026 15:29:37 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1792769365;
	b=RYVlilbGQYsCvVSS2oBFj65mL+pTopN9Eqg3vyvbJeXFeN8l8/Rmjfz/z99n1xOfv6rO
	 zfTobjrvoiKluHB2VKj3FDas3uDKicD5LvUjsLgyH3QT7q4Y5OKxJTo7HOdEZONTngCYc
	 wvqxrKHUzJv4ltRkNBeH9YR88/cVEQ7itHOG0lgKjDhXzykmw0HNo6kiDDVa0hgw7NHLK
	 GYw3qPUONRFbGhCVRZqhG7hj7JNcrwB1JMVD7whkmWZpOajqSkN7362qiecYMXTBjeFL5
	 Yd1+39A99g3GzCRNVfvTLJqCG6/m0p0FCWlHizn4i6YK0S9BbBsmXQjC/q6yvhsRH8w==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792769365;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:From:Date:
	 X-Gm-Features:Message-ID:Subject:To:Content-Type;
	bh=+jm7BAEyHdyRUaLhF6VyE5LALzEYlWp6M8Sici9bouM=;
	b=ok+RjqbWT0GvL7HkGW4cTDS88/BL0CTAoE3d1HI6v4RG6/wPqQ+cWBjGk/EjFOurmivE
	 +Cb8gxXHj6CevULWAXeu8LQDqv5l/3U/nJrllY55PVC8wfiIJLPi54CrYa7pEHzuEPU0F
	 56yMNlxVtHr4RlYL+RUMnljjBYjDT96krMh7To4JtZOFpUVwsbNbxrf9lKXeN344KZRZj
	 dDG6zP3gGh6Prg629f6q028Fg47tv1pNXVFyKif+bp7aLflI1XZ8vIoa2e2KkDwulVvfh
	 Uu9PI1IR6v73vji32ybz4vFCH2M3tS3BJN5RVRBtHAQqBlxMso06VLYc0M13O4rM4Bg==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=jC8MwRB8;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 89281606A338;
	Fri, 23 Oct 2026 15:29:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=jC8MwRB8
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=74.125.224.53
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1792769364;
	b=jJSxKmMdaS3g6ApCzhf6REV1HpcN5zAeOmqEbng3OdfiFUVY4guE41bUGZQccJe5pLx5
	 1C1dwI5WCOwFpclUCP6vjiCWgQCSRws7mnr7WciVWEFYl2Mt5ZbK6/V6nZPeOUvSGxcIe
	 6nT3tLsQiB5LC1EnskFRXemj0CFXk6aakL7PSkhi/fa6APTgRaMWANzG247G9c9ByH4yt
	 PLzZf7TaZWfHhp+U+bWglwPUYG3Ic+wvxsCY6612hqbEwjF+HvuuBaN+0qQOZQLrlzo/M
	 sRGCpVb8NbIqUyrj34B5XwnLa+Md3oFCs0waTDUo4P91dwDtCIiMwHhDUjId0ySt4Kg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792769364;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:MIME-Version:From:Date:
	 X-Gm-Features:Message-ID:Subject:To:Content-Type;
	bh=+jm7BAEyHdyRUaLhF6VyE5LALzEYlWp6M8Sici9bouM=;
	b=xtDnZdYFpirOdxIQlc1Fl0YNrFBl61S+Y4OXJjl0xZlA8BRwfRzvtrgqN86lkX3Ou+Vo
	 oI1ztiCXq43ljLxmv8Qlxgp1VaRfLh9LAM+wrElSTbXmo4Vb2xGrdEFCY0SapOK66I6Tp
	 L+uysTz+NNlmOMQCPGWlu81cNCFTRnJ/iFmPQHnXWCdWLurMhFjL5fsUXobk6p34ucMHz
	 aIE+oW2zodGwHyOvwp3RqVK7T54De7gZemnkxxNjxbgqM+KZcDjFJUfJXuUy/xFiwg+j4
	 WXuVZ9a+FVFVW+xeCLuGcX5ZRvD1/oldDRT8rYVMhMr434rotKosA2Omd5A4s7D+8HA==
X-ARC-Authentication-Results: i=2; 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=20251104 header.b=jC8MwRB8;
	arc=pass header.oldest-pass=0 smtp.remote-ip=74.125.224.53
X-Received: from mail-yx1-f53.google.com (mail-yx1-f53.google.com [74.125.224.53])
	(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 4FC8F606A322
	for <git@vger.kernel.org>; Fri, 23 Oct 2026 15:29:24 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4FC8F606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-yx1-f53.google.com with SMTP id 956f58d0204a3-67992884b02so783837d50.3
        for <git@vger.kernel.org>; Fri, 23 Oct 2026 08:29:24 -0700 (PDT)
X-ARC-Seal: i=1; a=rsa-sha256; t=1792769363; cv=none;
        d=google.com; s=arc-20260327;
        b=PW/YZNFECmejo/GE0ZWxJ2L4z+wOwr2T4ui+gwcxtgdVc8kQWMFOqFnjNPHYoz0MM4
         OZPv7Y7WozvVXxN9KYDhT8GX9Z5IXPdp+obd7L++uNl92zPa6ARE3C7X/vOybX3WRSym
         51UcVFSiOhf4qcf6RUjh1EIrMjRbMq1hzJZrJy/Pm/OSrEzFR1cGvMG/V4B2xFrXYL6P
         LCBHM9AOPs4idX2A2t9oyxWUosIVYerGH3oYh5sbK1XCNj6bPpTXKIyBloyK2E0XHg+l
         48T0NIvKuYTU7/VMw0Yu++sWrAnolD9EW0+RX+3Uq6CIF013YIj7nB4E96erlbpMzUEm
         TPMQ==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
        h=to:subject:message-id:date:from:mime-version:dkim-signature;
        bh=+jm7BAEyHdyRUaLhF6VyE5LALzEYlWp6M8Sici9bouM=;
        fh=AdLvfp5rDLFEqEXBqPWoMWgsTSDK6pd8NZNu0VEubK4=;
        b=czFvil7WQsEVfW3oMx2XufYxfJ9L50nJLx4/JqvRSJ8ZT+K0CYK04HJnTs7Ayrdq7E
         TQocNA/Sna8UgyHVY3Lz1jcxlrf8XYdu+Of2X3hDgFnpScA9c6qiaOdD3CYWchEhv18P
         Su0PzCr0cRvgZlNb03sJhu5dlrC7S/GagQsNkLxBQxdA6DRrDDewKzxirACdxioSk+Gk
         F81V/oSqtGnS0pHxbiZZSywfA9ujIlydmJEpRKHDJoieppu6VrfK0NIyjyyImr1JC5G6
         hQvT8BRG5kRgujDYFdzZwp+6g11Kj6+5vq/dRXGXgljUQ0XOMAsIymooXNMhlp6TaRxA
         Mitg==;
        darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1792769363; x=1793374163; darn=vger.kernel.org;
        h=content-type:to:subject:message-id:date:from:mime-version:from:to
         :cc:subject:date:message-id:reply-to:content-type;
        bh=+jm7BAEyHdyRUaLhF6VyE5LALzEYlWp6M8Sici9bouM=;
        b=jC8MwRB8WK098ypHEeXoNiYM6AiSx/vu5NKQ4fNL3Zb0WZujZJCB3N30Ui/l8Zr8LM
         /FYVaxS+cvlCJluOJ3rTEj6TgAVhbyhUeckMFLAYRO4l/2nfABJEili2+tW8EglC0yT7
         4znK4yle5fUDwWMAj9T4Y/kjBS57MK5AXXjBHAAsMS+6wvQ8E+Gy++pEhgoH6m9gpWWq
         sd/uwA1dx2jtmsVdkv5UOgZ8bfyEL0MNdw4P9cQ+HC9F1B5Gp7j6U9iRSFgr2mP+WJ5l
         8DWFGJgbIsV1AWcj97RDfIbSNfbeiAmtGu0H7tNjzu3A90sDd7OPbHO1v9zL941It6Yg
         2YFg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1792769363; x=1793374163;
        h=content-type:to:subject:message-id:date:from:mime-version:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=+jm7BAEyHdyRUaLhF6VyE5LALzEYlWp6M8Sici9bouM=;
        b=bQ07IfX3nkAXCAik6jj8lnfjwJ3WNycLOsZ5+0vHZ4OBDSaEhghw4qb7WOeiPnrtiu
         /VEj1lmCRI2BQvI4CBRA967DTl7i3T6DfTG6EH0VUmOWfeSJ5wW6MR4sO5rd8jql+t2r
         Q4bvI7B4Kg22P9uh64TdynK4xPbP9iE8qPjqIa71F+hFoYJMIIXT5NIUTy+mJ8nhIrZZ
         7eUYrj7H0gGkq5ZtfFgDMR+y50F7GvSYvd4hpNP4QagMGJaP07+ziEVuIgePBL8OdSLq
         NmVhlQm7Lzc1T249GyzD2pu3wTTYvlPc4gpBJqq5dSuO62UbmbHabi/4+GQfQd+6Y5fs
         AyjA==
X-Gm-Message-State: AFq9FYKoqcXbYYONj7uadb9FhBQ6Q7O9pfehHdOX61gHPNawA2q1J3sW
	/5nrnToHh7SiJk2/DQVNIp+JZUky+rl36BJfiGC6oL9wmcJtiBMYOygOmGZbGRFa9rJpx5K+oto
	1huseHuHHAMU555TFe+IOy5scel7Ovrnk02i2qNSW
X-Gm-Gg: AYBFou0szMerxZ1Me04bCMySAzicE2ANCPkxtLctKn/ezXV6XZ9msYODR4mDL0tTV8L
	awGu8GPFRw/lQTR01GkO+mXM5nU8YIQxslWoBrvKQI8ehRAmkCac6OUNmH7/06xU/zSijuqENAW
	QU9Vw7wk2JVrvtkW0OyQWUnhbwpWwxtsTvjM8LZNa0TfkiuQnYunejN5+3frI0YESaHctTtpg/w
	5a1J3H7ZGeWZvouR28Nh8/q720uTYGIXqS53EnzSp7M38HLiQ2lpBDCw47BchU3zg0nuQkWpg/i
	ihHh/mydUZEN2kCM+NPGhO+QAeBlxPkwpPohavOwurRSEfv5/x4934n9GBTbbqibTcrC+aP359z
	KZgJ+4wbYIQFqy81sdpqfJgS0SS6FzXIf/g==
X-Received: by 2002:a05:690e:80b:10b0:679:c759:a450 with SMTP id
 956f58d0204a3-67a35be55a9mr943721d50.19.1792769363313; Fri, 23 Oct 2026
 08:29:23 -0700 (PDT)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-Gm-Features: AclHuK8l3aMEuIwoM7h0pMKOmMahnXmZfbLTE7eO8ULX_8S3aXuRdnGPlwjqwVc