"Derrick Stolee via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes: > From: Derrick Stolee <derrickstolee@xxxxxxxxxx> > > This logic was introduced by 5325591 (worktree: copy sparse-checkout > patterns and config on add, 2022-02-07), but some feedback came in that > the add_worktree() method was already too complex. It is better to > extract this logic into a helper method to reduce this complexity. > > Reported-by: Eric Sunshine <sunshine@xxxxxxxxxxxxxx> > Signed-off-by: Derrick Stolee <derrickstolee@xxxxxxxxxx> > --- > builtin/worktree.c | 81 ++++++++++++++++++++++++---------------------- > 1 file changed, 42 insertions(+), 39 deletions(-) Quite straight-forward. Looking good. Thanks.