]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/add: add ODB transaction around add_files_to_cache
authorNeeraj Singh <neerajsi@microsoft.com>
Tue, 5 Apr 2022 05:20:11 +0000 (22:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Apr 2022 20:13:26 +0000 (13:13 -0700)
commitb4a0c6dc9733751788161ce3c181709be89045f9
treee452d244465a75073807a0042246e01108f4fa81
parent4d33e2ba6b9db6a28085b2ef7e46d30a981875ab
builtin/add: add ODB transaction around add_files_to_cache

The add_files_to_cache function is invoked internally by
builtin/commit.c and builtin/checkout.c for their flags that stage
modified files before doing the larger operation. These commands
can benefit from batched fsyncing.

Signed-off-by: Neeraj Singh <neerajsi@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/add.c