Re: [PATCH 1/6] refs.c: add an err argument to log_ref_setup

2015-06-25 Thread Junio C Hamano
David Turner writes: > Add err argument to log_ref_setup that can explain the reason for a > failure. This then eliminates the need to manage errno through this > function since we can just add strerror(errno) to the err string when > meaningful. No callers relied on errno from this function for

[PATCH 1/6] refs.c: add an err argument to log_ref_setup

2015-06-24 Thread David Turner
Add err argument to log_ref_setup that can explain the reason for a failure. This then eliminates the need to manage errno through this function since we can just add strerror(errno) to the err string when meaningful. No callers relied on errno from this function for anything else than the error me