Re: [PATCH v3 16/17] sparse-checkout: write using lockfile

2019-10-14 Thread Derrick Stolee
On 10/12/2019 6:59 PM, Elijah Newren wrote: > On Mon, Oct 7, 2019 at 1:08 PM Derrick Stolee via GitGitGadget > wrote: >> >> From: Derrick Stolee >> >> If two 'git sparse-checkout set' subcommands are launched at the >> same time, the behavior can be unexpected as they compete to write >> the spar

Re: [PATCH v3 16/17] sparse-checkout: write using lockfile

2019-10-12 Thread Elijah Newren
On Mon, Oct 7, 2019 at 1:08 PM Derrick Stolee via GitGitGadget wrote: > > From: Derrick Stolee > > If two 'git sparse-checkout set' subcommands are launched at the > same time, the behavior can be unexpected as they compete to write > the sparse-checkout file and update the working directory. > >

[PATCH v3 16/17] sparse-checkout: write using lockfile

2019-10-07 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee If two 'git sparse-checkout set' subcommands are launched at the same time, the behavior can be unexpected as they compete to write the sparse-checkout file and update the working directory. Take a lockfile around the writes to the sparse-checkout file. In addition, acquire