git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [Outreachy] Microproject idea: modernize a file-existence check in t/t0081-find-pack.sh

From
OAOkhuomon Ajayi <okhuomonajayi54@gmail.com>
Date
Oct 29, 2026, 09:03 UTC
Message-ID
<CAFpMFfA17dnuLSRt97BrM0u3cHAifJybr_Zc2ahr_zq2nspgsw@mail.gmail.com>
In-Reply-To
<CAKUOgLz3sefhypa9yzLszW43uQ=Jor_nRBAJaBXXv0d8M2ePBw@mail.gmail.com>

On Thu, Oct 29, 2026 at 9:10 AM Immaculate Mecha <immaculatemecha87@gmail.com> wrote:

Show 19 quoted lines
>
> Hi,
>
> I'm preparing a microproject contribution for Outreachy and have been
> exploring a small test cleanup in Git.
>
> In t/t0081-find-pack.sh, line 35 currently uses:
>
> test -f "$head_commit_pack" &&
>
> I'm considering replacing it with Git's test helper:
>
> test_path_is_file "$head_commit_pack" &&
>
> I checked the file's history using git blame and confirmed that this
> is the only test -f, test -e, or test -d check in that script.
>
> Would this be an appropriate and useful microproject, or is there a
> reason to leave this check as it is?
Hi Immaculate,
Welcome! I think Shashank S already changed this exact line in t0081
https://lore.kernel.org/git/pull.2254.v2.git.1792061236183.gitgitgadget@gmail.com/

Before choosing a microproject, it helps to search the list archive at https://lore.kernel.org/git/ for the file name, and to check the "What's cooking" reports, to make sure nobody is already working on it.

Good luck! Okhuomon

Previous: Immaculate MechaNext: Immaculate Mecha
Message 2 of 5 in “[Outreachy] Microproject idea: modernize a file-existence check in t/t0081-find-pack.sh”
  1. Immaculate MechaOct 29, 2026
  2. Okhuomon AjayiOct 29, 2026
  3. Immaculate MechaOct 29, 2026
  4. Junio C HamanoOct 29, 2026
  5. Immaculate MechaNov 2, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.