git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
PWPhillip 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
Next: Phillip Wood
Message 1 of 8 in “worktree list: fix column alignment”
  1. 0/2 worktree list: fix column alignmentPhillip Wood, Nov 18, 2025
  2. 1/2 worktree list: fix column spacingPhillip Wood, Nov 18, 2025
  3. Eric SunshineNov 19, 2025
  4. 2/2 worktree list: quote pathsPhillip Wood, Nov 18, 2025
  5. Eric SunshineNov 19, 2025
  6. Phillip WoodNov 21, 2025
  7. Junio C HamanoNov 18, 2025
  8. Eric SunshineNov 19, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.