[PATCH 0/2] worktree list: fix column alignment
- From
- Phillip Wood <phillip.wood123@gmail.com>
- Date
- Nov 18, 2025, 16:07 UTC
- Message-ID
- <cover.1763482051.git.phillip.wood@dunelm.org.uk>
From: Phillip Wood <phillip.wood@dunelm.org.uk>
If a worktree path contains a multibyte character we end up with excess padding between the columns in the output of "git worktree list". This series fixes that and quotes the path to avoid control characters messing up the output as well.
Base-Commit: fd372d9b1a69a01a676398882bbe3840bf51fe72 Published-As: https://github.com/phillipwood/git/releases/tag/pw%2Fworktree-list-spacing%2Fv1 View-Changes-At: https://github.com/phillipwood/git/compare/fd372d9b1...b42d0f668 Fetch-It-Via: git fetch https://github.com/phillipwood/git pw/worktree-list-spacing/v1
Phillip Wood (2): worktree list: fix column spacing worktree list: quote paths
builtin/worktree.c | 41 ++++++++++++++++++++++++++++------------ t/t2402-worktree-list.sh | 37 +++++++++++++++++++++++------------- 2 files changed, 53 insertions(+), 25 deletions(-)
-- 2.52.0.345.g9c3c96ee5a7