]> git.ipfire.org Git - thirdparty/git.git/commit - git-compat-util.h
wrapper.c: add a new function unlink_or_msg
authorRonnie Sahlberg <sahlberg@google.com>
Wed, 16 Jul 2014 18:20:36 +0000 (11:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Oct 2014 17:47:21 +0000 (10:47 -0700)
commit9ccc0c089667e6dccc888590376f138521784e5e
treef51130e16fe3945b137f76ac5862a917ec45d6a9
parent3c93c847cacea68e520f6099b18c69f406ab9407
wrapper.c: add a new function unlink_or_msg

This behaves like unlink_or_warn except that on failure it writes the message
to its 'err' argument, which the caller can display in an appropriate way or
ignore.

Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h
wrapper.c