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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 18, 2025, 17:03 UTC
Message-ID
<xmqqzf8je0il.fsf@gitster.g>
In-Reply-To
<cover.1763482051.git.phillip.wood@dunelm.org.uk>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 6 quoted lines
> 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.
Great.  Thanks.
Show 14 quoted lines
>
> 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(-)
Previous: Phillip WoodNext: Eric Sunshine
Message 7 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.