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

Re: [GSoC PATCH] t7104: use test_path_is_file instead of test -f

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 26, 2026, 21:20 UTC
Message-ID
<xmqq7bj4p3ax.fsf@gitster.g>
In-Reply-To
<20261026164536.50520-1-raaztilak07@gmail.com>
Tilak Kumar <raaztilak07@gmail.com> writes:
> Use the helper so that a missing file is reported
> with a clear message instead of a silent failure.

This makes sense but what is GSoC doing in the patch title? Has the program already been announced for 2027?

Show 17 quoted lines
> Signed-off-by: Tilak Kumar <raaztilak07@gmail.com>
> ---
>  t/t7104-reset-hard.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/t/t7104-reset-hard.sh b/t/t7104-reset-hard.sh
> index c23d6e3f52..acf145e69b 100755
> --- a/t/t7104-reset-hard.sh
> +++ b/t/t7104-reset-hard.sh
> @@ -29,7 +29,7 @@ test_expect_success 'reset --hard should restore unmerged ones' '
>  
>  	git reset --hard &&
>  	git ls-files --error-unmatch before/1 before/2 hello later/3 &&
> -	test -f hello
> +	test_path_is_file hello
>  
>  '
Previous: Tilak KumarNext: Tilak Raaz
Message 2 of 4 in “t7104: use test_path_is_file instead of test -f”
  1. t7104: use test_path_is_file instead of test -fTilak Kumar, Oct 26, 2026
  2. Junio C HamanoOct 26, 2026
  3. Tilak RaazOct 27, 2026
  4. Junio C HamanoOct 27, 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.