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

Re: [PATCH] gitk: Display commit messages with word wrap

From
Sergey Vlasov <vsu@altlinux.ru>
Date
May 15, 2006, 15:06 UTC
Message-ID
<20060515150619.GC19254@master.mivlgu.local>
In-Reply-To
<17511.48749.631725.358279@cargo.ozlabs.ibm.com>
On Mon, May 15, 2006 at 09:34:05AM +1000, Paul Mackerras wrote:
Show 8 quoted lines
> Sergey Vlasov writes:
> 
> > Some people put very long strings into commit messages, which then
> > become invisible in gitk (word wrapping in the commit details window is
> > turned off, and there is no horizontal scroll bar).  Enabling word wrap
> > for just the commit message looks much better.
> 
> Well... you can scroll in any direction with mouse button 2, but ok...

I completely forgot about this obscure feature of Tk (and is it only me who thinks that it scrolls in the wrong direction?).

> > +    $ctext insert end "\n" {}
> 
> Why are you adding the superfluous {} ?

Because I was paranoid about not letting the tag leak into subsequent text... but apparently this does not happen even without that {}, so I'll remove it.

Show 5 quoted lines
> > -    set comment {}
> > +    set headers {}
> 
> Why are you changing the name here?  Your commit description doesn't
> address either of these points.

Previously the "comment" variable contained both the commit headers ("Parent:" and "Child:" lines) and the commit message, and all this text was inserted into $ctext by a single call to "appendwithlinks". Now I need to insert these parts separately (wrapped "Parent:" and "Child:" lines look bad, I want to wrap only the commit message), therefore only headers are collected in that variable - so I renamed it to reflect this new usage.

I'll send the updated patch in a separate message.
Previous: Paul MackerrasNext: Sergey Vlasov
Message 5 of 6 in “gitk: Display commit messages with word wrap”
  1. gitk: Display commit messages with word wrapSergey Vlasov, May 14, 2006
  2. Junio C HamanoMay 14, 2006
  3. Sergey VlasovMay 15, 2006
  4. Paul MackerrasMay 14, 2006
  5. Sergey VlasovMay 15, 2006
  6. gitk: Display commit messages with word wrap (try 2)Sergey Vlasov, May 15, 2006

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.