Skip to content

worktree list: fix column alignment

Phillip Wood git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2worktree list: fix column spacingbuiltin/worktree.c t/t2402-worktree-list.sh+33 -241 reply
2/2worktree list: quote pathsbuiltin/worktree.c t/t2402-worktree-list.sh+22 -32 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] worktree list: fix column alignment

From: Phillip Wood <[email protected]>

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(-)
Signature · 1 line
2.52.0.345.g9c3c96ee5a7