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

Re: git-gui: Long lines in commit message gets hidden, no scrollbar appears

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
Sep 2, 2019, 17:58 UTC
Message-ID
<CAKPyHN3FYR0FbDxnE4ru7OoK4w3OEE0g8tpoOqH-e+e1iTmcuA@mail.gmail.com>
In-Reply-To
<xmqqa7bmvbwz.fsf@gitster-ct.c.googlers.com>
On Mon, Sep 2, 2019 at 7:35 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
>
> Bert Wesarg <bert.wesarg@googlemail.com> writes:
>
> > the old reasoning was, that you should not create commit messages
> > which are too wide.
>
> True, and that reasoning would justify hiding scrollbar when not
> necessary to gain vertical space.  Can we arrange the scrollbar to
> appear only when needed?

up to now, git-gui does not hide any scrollbars, if they are not needed. IMHO, I would keep it that way, as I don't like the flicker when it appears and disappears. Imagine you are typing in the bottom line and than you typed too much. The scrollbar appears, your input line jumps one up line (or is hidden behind the scrollbar), than you remove the too long line, the scrollbar disappears again and your input line jumps down again.

Bert
Previous: Junio C HamanoNext: Birger Skogeng Pedersen
Message 17 of 18 in “git-gui: Long lines in commit message gets hidden, no scrollbar appears”
  1. Birger Skogeng PedersenSep 2, 2019
  2. Bert WesargSep 2, 2019
  3. Birger Skogeng PedersenSep 2, 2019
  4. Pratyush YadavSep 2, 2019
  5. Birger Skogeng PedersenSep 2, 2019
  6. Pratyush YadavSep 2, 2019
  7. Pratyush YadavSep 2, 2019
  8. Bert WesargSep 2, 2019
  9. Bert WesargSep 2, 2019
  10. Birger Skogeng PedersenSep 2, 2019
  11. Pratyush YadavSep 3, 2019
  12. Bert WesargSep 4, 2019
  13. Pratyush YadavSep 4, 2019
  14. Birger Skogeng PedersenSep 4, 2019
  15. Pratyush YadavSep 4, 2019
  16. Junio C HamanoSep 2, 2019
  17. Bert WesargSep 2, 2019
  18. Birger Skogeng PedersenSep 2, 2019

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.