From: Ronnie Sahlberg Date: Tue, 22 Apr 2014 18:45:24 GMT Subject: [PATCH 0/3] Use ref transactions for fetch Message-ID: <1398192327-21302-1-git-send-email-sahlberg@google.com> This change is based on the previous ref transaction patches. This is sent as a separate patch series since it implements a lot more non-trivial changes to the behaviour than the previous patches and thus can use more detailed review. Update fetch.c to use ref transactions when performing updates. Use a single ref transaction for all updates and only commit the transaction if all other checks and oeprations have been successful. This makes the ref updates during a fetch (mostly) atomic. Ronnie Sahlberg (3): fetch.c: clear errno before calling functions that might set it fetch.c: change s_update_ref to use a ref transaction fetch.c: use a single ref transaction for all ref updates builtin/fetch.c | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) -- 1.9.1.518.g16976cb.dirty