summaryrefslogtreecommitdiff
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2023-07-05 20:49:28 +0100
committerJunio C Hamano <gitster@pobox.com>2023-07-05 14:00:28 -0700
commit4e61e0f68053ff3fcca298ebd3080527e3565004 (patch)
treefdfcb48def0c366576413e552a1d8102de7bfd76 /builtin/commit-graph.c
parent498198453dbb8ae46becbc83a1ef0979a0eb805d (diff)
diff --no-index: die on error reading stdin
If there is an error when reading from stdin then "diff --no-index" prints an error message but continues to try and diff a file named "-" resulting in an error message that looks like error: error while reading from stdin: Invalid argument fatal: stat '-': No such file or directory assuming that no file named "-" exists. If such a file exists it prints the first error message and generates the diff from that file which is not what the user wanted. Instead just die() straight away if we cannot read from stdin. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions