aboutsummaryrefslogtreecommitdiffstats
path: root/t/t4013/diff.format-patch_--inline_--stdout_initial..side
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2015-07-17 19:00:12 -0400
committerJunio C Hamano <gitster@pobox.com>2015-07-20 11:29:52 -0700
commit80a0548f6c12f43e9bd62e13eacb033f05e2b001 (patch)
tree05cf608fee704b88993928bcc684fab7d27fd960 /t/t4013/diff.format-patch_--inline_--stdout_initial..side
parentworktree: elucidate environment variables intended for child processes (diff)
downloadgit-80a0548f6c12f43e9bd62e13eacb033f05e2b001.tar.gz
git-80a0548f6c12f43e9bd62e13eacb033f05e2b001.zip
worktree: add_worktree: construct worktree-population command locally
The caller of add_worktree() provides it with a command to invoke to populate the new worktree. This was a useful abstraction during the conversion of "git checkout --to" functionality to "git worktree add" since git-checkout and git-worktree constructed the population command differently. However, now that "git checkout --to" has been retired, and add_worktree() has access to the options given to "worktree add", this extra indirection is no longer useful and makes the code a bit convoluted. Moreover, the eventual goal is for git-worktree to make setting of HEAD and worktree population distinct operations, whereas they are currently conflated into a single git-checkout invocation. As such, add_worktree() will eventually invoke other commands in addition to the worktree population command, so it will be doing command construction itself anyhow. Therefore, relocate construction of the worktree population command from add() to add_worktree(). Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.format-patch_--inline_--stdout_initial..side')
0 files changed, 0 insertions, 0 deletions
use linkmode_*() rather than open codingRussell King (Oracle)1-1/+1 2023-11-16net: phylink: use linkmode_fill()Russell King (Oracle)1-2/+2 2023-11-16net: linkmode: add linkmode_fill() helperRussell King (Oracle)1-0/+5 2023-11-16tcp: no longer abort SYN_SENT when receiving some ICMPEric Dumazet2-3/+12 2023-11-16tcp: use tp->total_rto to track number of linear timeouts in SYN_SENT stateEric Dumazet1-2/+2 2023-11-16vxlan: add support for flowlabel inheritAlce Lafranque4-17/+58 2023-11-16selftests/net: synchronize udpgro tests' tx and rx connectionLucas Karpinski4-11/+34 2023-11-16selftests: tc-testing: use parallel tdc in kselftestsPedro Tammela1-2/+2 2023-11-16selftests: tc-testing: preload all modules in kselftestsPedro Tammela1-2/+63 2023-11-16selftests: tc-testing: rework namespaces and devices setupPedro Tammela1-20/+49 2023-11-16selftests: tc-testing: drop '-N' argument from nsPluginPedro Tammela1-36/+13