Subject: Re: [PATCH 2/2] builtin/repo: fix table alignment for UTF-8 characters

From: Junio C Hamano <[email-masked]>
Date: Fri, 14 Nov 2025 12:00:21 -0800

Jiang Xin <[email-masked]> writes:

Not about the contents of the patch, but how was the list of
addresses on CC produced?  Do they all have enough stakes in the
code being updated that they do not mind getting spammed like this?

Also, you had a non-address "Gemini <[email-masked]>",
which forced me and anybody who will respond to the patch edit Cc
address list (or suffer bounces).  Please don't.

> The output table from "git repo structure" is misaligned when displaying
> UTF-8 characters (e.g., non-ASCII glyphs). E.g.:
>
>     | 仓库结构   | 值  |
>     | -------------- | ---- |
>     | * 引用       |      |
>     |   * 计数     |   67 |
>     |     * 分支   |    6 |
>     |     * 标签   |   30 |
>     |     * 远程   |   19 |
>     |     * 其它   |   12 |
>     |                |      |
>     | * 可达对象 |      |
>     |   * 计数     | 2217 |
>     |     * 提交   |  279 |
>     |     * 树      |  740 |
>     |     * 数据对象 | 1168 |
>     |     * 标签   |   30 |

As there is a concrete reproduction sample from a specific tool, ...

>  builtin/repo.c | 22 ++++++++++++++++++----
>  1 file changed, 18 insertions(+), 4 deletions(-)

... it is a good idea to protect the change with a new test or two
to make sure the expected alignment in the output.

Thanks.