diff options
author | Stefan Beller <sbeller@google.com> | 2015-01-07 19:23:19 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-01-07 19:56:43 -0800 |
commit | 68deed298ac4c257cd72d6bee543f651cb10d669 (patch) | |
tree | cc7b377b341e463b18c0a6efb76605f273819977 /t/t9604/cvsroot/module/a,v | |
parent | receive-pack.c: move transaction handling in a central place (diff) | |
download | tgif-68deed298ac4c257cd72d6bee543f651cb10d669.tar.xz |
receive-pack.c: add execute_commands_atomic function
This introduces the new function execute_commands_atomic which will use
one atomic transaction for all updates. The default behavior is still
the old non atomic way, one ref at a time. This is to cause as little
disruption as possible to existing clients. It is unknown if there are
client scripts that depend on the old non-atomic behavior so we make it
opt-in for now.
A later patch will add the possibility to actually use the functionality
added by this patch. For now use_atomic is always 0.
Inspired-by: Ronnie Sahlberg <sahlberg@google.com>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9604/cvsroot/module/a,v')
0 files changed, 0 insertions, 0 deletions