From: Sergey Vlasov <vsu@altlinux.ru>
To: Paul Mackerras <paulus@samba.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] gitk: Display commit messages with word wrap
Date: Mon, 15 May 2006 19:06:19 +0400 [thread overview]
Message-ID: <20060515150619.GC19254@master.mivlgu.local> (raw)
In-Reply-To: <17511.48749.631725.358279@cargo.ozlabs.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 1489 bytes --]
On Mon, May 15, 2006 at 09:34:05AM +1000, Paul Mackerras wrote:
> 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.
> > - 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.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-05-15 15:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-14 15:14 [PATCH] gitk: Display commit messages with word wrap Sergey Vlasov
2006-05-14 23:30 ` Junio C Hamano
2006-05-15 15:07 ` Sergey Vlasov
2006-05-14 23:34 ` Paul Mackerras
2006-05-15 15:06 ` Sergey Vlasov [this message]
2006-05-15 15:13 ` [PATCH] gitk: Display commit messages with word wrap (try 2) Sergey Vlasov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060515150619.GC19254@master.mivlgu.local \
--to=vsu@altlinux.ru \
--cc=git@vger.kernel.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox