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

[BUG] "git log" command wraps lines not correctly while terminal width changed

From
SGSergey Grunenko <grunenko.serg@gmail.com>
Date
Jul 29, 2022, 14:35 UTC
Message-ID
<CAFRNrRYs5tkTq_Dz3qX+jZ_PJLdUwT4NgabavYeHsGOEtMTq5w@mail.gmail.com>
Hi, developers. I met some small bug in console report of "git log" command

Short description: git log --graph command wraps lines incorrectly while I change the width of terminal. It remember the initial width of terminal and wraps lines according to the initial width.

How to reproduce:
1. Open terminal
2. go to existing repository with some branches
3. Change terminal width to 50 characters (or less, to be sure, that
first line wraps)
4. process command "git log --graph" and be sure, that a few lines is wrapping
5. Increase terminal width until line breaks stop
6. Lines wrapping is changing and is correct
7. Click <up> <down> buttons or rotate mouse scroll to scroll text two
screens next and back
Incorrect behavior:
8. You'll see that the wrapping behavior is like terminal width didn't changed.
9. But if you touch the terminal width again, wrapping will be correct
Awaited behavior:
8a. Lines wrapping is like terminal has changed value

------------------------------------ mailto: grunenko.serg@gmail.com ------------------------------------ Kind regards, Sergey Grunenko

Next: Jeff King
Message 1 of 3 in “[BUG] "git log" command wraps lines not correctly while terminal width changed”
  1. Sergey GrunenkoJul 29, 2022
  2. Jeff KingJul 29, 2022
  3. Junio C HamanoJul 29, 2022

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.