author | Linus Torvalds <torvalds@linux-foundation.org> | |
Sun, 24 Jun 2007 17:29:33 +0000 (10:29 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 25 Jun 2007 05:56:40 +0000 (22:56 -0700) | ||
commit | 0f157315a1020fce76fe2c5a703e40684b9b1699 | |
tree | 1ca26e03dee85ce03e56b35a18e66f2c87e511a3 | tree | snapshot |
parent | 47d0b4ff57f391786ed050f38c0de51462eda97a | commit | diff |
Check for IO errors after running a command
This is trying to implement the strict IO error checks that Jim Meyering
suggested, but explicitly limits it to just regular files. If a pipe gets
closed on us, we shouldn't complain about it.
If the subcommand already returned an error, that takes precedence (and we
assume that the subcommand already printed out any relevant messages
relating to it)
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This is trying to implement the strict IO error checks that Jim Meyering
suggested, but explicitly limits it to just regular files. If a pipe gets
closed on us, we shouldn't complain about it.
If the subcommand already returned an error, that takes precedence (and we
assume that the subcommand already printed out any relevant messages
relating to it)
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git.c | diff | blob | history |