diff options
author | Jeff King <peff@peff.net> | 2016-08-03 19:01:42 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-05 09:28:17 -0700 |
commit | ca5c701ca50c24807793294c5ed22230858ac5e6 (patch) | |
tree | 24b40f5c032c973de2ee4572a535048de870a041 /t/t9128-git-svn-cmd-branch.sh | |
parent | trace: disable key after write error (diff) | |
download | tgif-ca5c701ca50c24807793294c5ed22230858ac5e6.tar.xz |
write_or_die: drop write_or_whine_pipe()
This function has no callers, and is not likely to gain any
because it's confusing to use.
It unconditionally complains to stderr, but _doesn't_ die.
Yet any caller which wants a "gentle" write would generally
want to suppress the error message, because presumably
they're going to write a better one, and/or try the
operation again.
And the check_pipe() call leads to confusing behaviors. It
means we die for EPIPE, but not for other errors, which is
confusing and pointless.
On top of all that, it has unusual error return semantics,
which makes it easy for callers to get it wrong.
Let's drop the function, and if somebody ever needs to
resurrect something like it, they can fix these warts.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9128-git-svn-cmd-branch.sh')
0 files changed, 0 insertions, 0 deletions