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

Re: [GSoC Patch 0/2] add unicode support to git repo structure

From
Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Date
Aug 23, 2026, 13:19 UTC
Message-ID
<aorzcZVdCK27pdjG@ugly.lan>
In-Reply-To
<xmqqse47pfyy.fsf@gitster.g>
On Fri, Aug 21, 2026 at 09:59:17AM -0700, Junio C Hamano wrote:
Show 13 quoted lines
>K Jayatheerth <jayatheerthkulkarni2005@gmail.com> writes:
>
>> Currently, `git repo structure` always renders its table output using plain
>> ASCII characters (`|`, `-`, `*`), regardless of the user's locale. This
>> series introduces Unicode box-drawing characters (`│`, `├`, `─`, `┼`, `┤`)
>> and bullet points (`•`) when a UTF-8 locale is detected, providing a cleaner
>> and more visually distinct hierarchical output on modern terminals while
>> gracefully falling back to the existing ASCII formatting otherwise.
>
>Generally speaking, Unicode box-drawing characters do not work as
>ASCII art components as well as they should, because terminals often
>do not agree on how wide they should be rendered.
>

i can instantly think of two popular applications i'm using every day which use box drawing chars: mutt (thread and attachment tree displays) and midnight commander (panel/dialog frames). if "often" above were accurate, these projects would be getting a lot of complaints about that, which they don't.

if compatibility with broken terminals/fonts is considered important, an option can be introduced to opt out from the modern experience.

(any takers for giving `git log --graph` the same treatment?)
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 7 in “add unicode support to git repo structure”
  1. 0/2 add unicode support to git repo structureK Jayatheerth, Aug 21, 2026
  2. 1/2 gettext: fall back to env-derived charset when unsetK Jayatheerth, Aug 21, 2026
  3. 2/2 repo: add Unicode support for `repo structure` outputK Jayatheerth, Aug 21, 2026
  4. Junio C HamanoAug 21, 2026
  5. Oswald BuddenhagenAug 23, 2026
  6. Junio C HamanoAug 23, 2026
  7. Tuomas AholaAug 23, 2026

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.