Skip to content

pr-1164/phillipwood/wip/worktree-list-nul-termination-v2

From: Phillip Wood <phillip.wood@dunelm.org.uk>

Add a -z option to be used in conjunction with --porcelain that gives
NUL-terminated output. As 'worktree list --porcelain' does not quote
worktree paths this enables it to handle worktree paths that contain
newlines.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>

Submitted-As: https://lore.kernel.org/git/pull.1164.v2.git.1648743688825.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1164.git.1645801727732.gitgitgadget@gmail.com
Assets 2