From: Junio C Hamano Date: Sun, 20 Feb 2022 20:26:32 GMT Subject: Re: [PATCH 02/11] worktree: extract copy_filtered_worktree_config() Message-ID: In-Reply-To: "Derrick Stolee via GitGitGadget" writes: > From: Derrick Stolee > > 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 > Signed-off-by: Derrick Stolee > --- > builtin/worktree.c | 81 ++++++++++++++++++++++++---------------------- > 1 file changed, 42 insertions(+), 39 deletions(-) Quite straight-forward. Looking good. Thanks.