]> git.ipfire.org Git - thirdparty/git.git/commit
add-patch: quit on EOF
authorRené Scharfe <l.s.r@web.de>
Sat, 25 Oct 2025 05:48:28 +0000 (07:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 26 Oct 2025 23:34:39 +0000 (16:34 -0700)
commite56f6dcd7b4c90192018e848d0810f091d092913
tree3908073a7287088228a9c5b351cf1cb8af31d876
parent13768117f5e174a7a0403607532e33a7dc40b969
add-patch: quit on EOF

If we reach the end of the input, e.g. because the user pressed ctrl-D
on Linux, there is no point in showing any more prompts, as we won't get
any reply.  Do the same as option 'q' would: Quit.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
add-patch.c
t/t3701-add-interactive.sh