]> Kevux Git Server - rit/commit
am/apply: warn if we end up reading patches from terminal
authorJunio C Hamano <gitster@pobox.com>
Thu, 3 Mar 2022 21:58:39 +0000 (13:58 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Mar 2022 22:00:32 +0000 (14:00 -0800)
commit7b20af6a069f1be1ac0354451e0edd9825b22534
treeab3f2f59a3401bff57c3e536fb6a4c3943326463
parent4c53a8c20f8984adb226293a3ffd7b88c3f4ac1a
am/apply: warn if we end up reading patches from terminal

In an interactive session, "git am" without arguments, or even
worse, "git am --whitespace file", waits silently for the user to
feed the patches from the standard input (presumably by typing or
copy-pasting).  Give a feedback message to the user when this
happens, as it is unlikely that the user meant to do so.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mailsplit.c