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

Re: [GSoC] [PATCH] t7611: replace test -f with test_path_is* helpers

From
karthik nayak <karthik.188@gmail.com>
Date
Dec 18, 2024, 15:23 UTC
Message-ID
<CAOLa=ZQbB=mSyHJpd+yVHKAW_jAvL3jt_Z=z-yQuKHJ=ie2gHg@mail.gmail.com>
In-Reply-To
<20241218111715.1030357-1-meetsoni3017@gmail.com>
Meet Soni <meetsoni3017@gmail.com> writes:
> test -f does not provide verbose error message on test failures, so use
> test_path_is_file, test_path_is_missing instead.
While `test -f` checks to ensure that the file exists and is a regular
file, I also notice that the patch contains changing `test ! -f`. This
is a bit more tricky, since:
1. It can be used to check if a regular file doesn't exist
2. It can be used to check if a directory exists instead of a file
The commit message only talks about the former.

The patch itself look great, but I just noticed that the subject mentions 'GSoC'. As Patrick has already mentioned in your previous email to the list [1], we still don't have any plans with regards to GSoC 25. So marking a patch in that context, doesn't make much sense (yet).

[1]: https://lore.kernel.org/git/Z2AwhvaE4DLAxzDy@pks.im/
[snip]
Previous: Meet SoniNext: Meet Soni
Message 2 of 7 in “t7611: replace test -f with test_path_is* helpers”
  1. Meet SoniDec 18, 2024
  2. karthik nayakDec 18, 2024
  3. t7611: replace test -f with test_path_is* helpersMeet Soni, Dec 20, 2024
  4. Junio C HamanoDec 20, 2024
  5. t7611: replace test -f with test_path_is* helpersMeet Soni, Dec 27, 2024
  6. Ghanshyam ThakkarDec 27, 2024
  7. Junio C HamanoDec 27, 2024

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.