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

Re: [PATCH 2/2] add-patch: quit on EOF

From
René Scharfe <l.s.r@web.de>
Date
Oct 26, 2025, 16:11 UTC
Message-ID
<01fb6bdc-7a42-4e14-b7c7-16860ce8af00@web.de>
In-Reply-To
<xmqqfrb6mqv4.fsf@gitster.g>
On 10/26/25 2:46 AM, Junio C Hamano wrote:
Show 21 quoted lines
> 
> Let's do this squashed in.
> 
>  t/t3701-add-interactive.sh | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git c/t/t3701-add-interactive.sh w/t/t3701-add-interactive.sh
> index 071b78c355..4285314f35 100755
> --- c/t/t3701-add-interactive.sh
> +++ w/t/t3701-add-interactive.sh
> @@ -1438,8 +1438,8 @@ test_expect_success 'EOF quits' '
>  	echo X >file &&
>  	echo X >file2 &&
>  	git add -p </dev/null >out &&
> -	grep file out &&
> -	! grep file2 out
> +	test_grep file out &&
> +	test_grep ! file2 out
>  '
>  
>  test_done
Good idea, thank you!
René
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 8 in “add-patch: quit without skipping undecided hunks”
  1. 1/2 add-patch: quit without skipping undecided hunksRené Scharfe, Oct 25, 2025
  2. 2/2 add-patch: quit on EOFRené Scharfe, Oct 25, 2025
  3. Junio C HamanoOct 25, 2025
  4. René ScharfeOct 25, 2025
  5. Junio C HamanoOct 26, 2025
  6. Junio C HamanoOct 26, 2025
  7. René ScharfeOct 26, 2025
  8. Junio C HamanoOct 25, 2025

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.