diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2014-10-01 12:28:18 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-10-01 13:45:12 -0700 |
commit | e31e949b9f9b5e6dcff42e2242cf1a6fb3686b91 (patch) | |
tree | 614d90b3ae196a0ab24ec13c5bebeeb944b007be /t | |
parent | prepare_index(): declare return value to be (const char *) (diff) | |
download | tgif-e31e949b9f9b5e6dcff42e2242cf1a6fb3686b91.tar.xz |
lock_file(): exit early if lockfile cannot be opened
This is a bit easier to read than the old version, which nested part
of the non-error code in an "if" block.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Ronnie Sahlberg <sahlberg@google.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions