From: Jens Lehmann <Jens.Lehmann@web.de>
To: Thomas Rast <trast@student.ethz.ch>
Cc: Paul Mackerras <paulus@samba.org>, git@vger.kernel.org
Subject: Re: [PATCH v4' 1/2] gitk: do not parse " >" context as submodule change
Date: Mon, 19 Apr 2010 19:22:44 +0200 [thread overview]
Message-ID: <4BCC9164.3080301@web.de> (raw)
In-Reply-To: <671110fcac73c5fc8a935b82d88f8553c510c50c.1271694102.git.trast@student.ethz.ch>
Am 19.04.2010 18:27, schrieb Thomas Rast:
>> Thanks, but now that I have applied Jens Lehmann's patch that also
>> touches this area, your patch doesn't apply. Could you rebase it and
>> send it again?
>
> Sure.
There might be a problem with this rebase. Unfortunately I am very
short on time, so I can't test this today.
I think setting the $currdiffsubmod variable to the empty string
has to show up in the two sections formatting the lines with
" >" & " <".
> gitk | 18 ++++++++++--------
> 1 files changed, 10 insertions(+), 8 deletions(-)
>
> diff --git a/gitk b/gitk
> index 1b0e09a..6513ef8 100755
> --- a/gitk
> +++ b/gitk
> @@ -7706,14 +7706,8 @@ proc getblobdiffline {bdf ids} {
> } else {
> $ctext insert end "$line\n" filesep
> }
> - } elseif {![string compare -length 3 " >" $line]} {
> - set $currdiffsubmod ""
> - set line [encoding convertfrom $diffencoding $line]
> - $ctext insert end "$line\n" dresult
> - } elseif {![string compare -length 3 " <" $line]} {
> - set $currdiffsubmod ""
> - set line [encoding convertfrom $diffencoding $line]
> - $ctext insert end "$line\n" d0
> + # pretend we're in a file header to correctly parse " [><]"
> + set diffinhdr 1
> } elseif {$diffinhdr} {
> if {![string compare -length 12 "rename from " $line]} {
> set fname [string range $line [expr 6 + [string first " from " $line] ] end]
> @@ -7732,6 +7726,14 @@ proc getblobdiffline {bdf ids} {
> set fname [lindex $fname 0]
> }
> makediffhdr $fname $ids
> + } elseif {![string compare -length 3 " >" $line]} {
I suspect we need a 'set $currdiffsubmod ""' here
> + set line [encoding convertfrom $diffencoding $line]
> + $ctext insert end "$line\n" dresult
> + continue
> + } elseif {![string compare -length 3 " <" $line]} {
and here.
> + set line [encoding convertfrom $diffencoding $line]
> + $ctext insert end "$line\n" d0
> + continue
> } elseif {[string compare -length 3 $line "---"] == 0} {
> # do nothing
> continue
If you can wait until tomorrow I can check that.
next prev parent reply other threads:[~2010-04-19 17:22 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1269996525.git.trast@student.ethz>
2010-04-04 13:46 ` [PATCH 0/2] gitk --color-words Thomas Rast
2010-04-04 13:46 ` [PATCH 1/2] diff: add --word-diff option that generalizes --color-words Thomas Rast
2010-04-05 2:06 ` Junio C Hamano
2010-04-05 10:20 ` Thomas Rast
2010-04-05 18:46 ` Junio C Hamano
2010-04-05 18:53 ` Miles Bader
2010-04-12 13:07 ` [PATCH v3 0/2] gitk --color-words Thomas Rast
2010-04-12 13:07 ` [PATCH v3 1/3] diff: add --word-diff option that generalizes --color-words Thomas Rast
2010-04-12 16:31 ` Junio C Hamano
2010-04-13 9:27 ` Thomas Rast
2010-04-14 15:59 ` [PATCH v4 0/3] git-diff --word-diff/gitk --color-words Thomas Rast
2010-04-14 15:59 ` [PATCH v4 1/3] diff: add --word-diff option that generalizes --color-words Thomas Rast
2010-04-14 21:23 ` Junio C Hamano
2010-04-14 15:59 ` [PATCH v4 2/3] gitk: do not parse " >" context as submodule change Thomas Rast
2010-04-15 19:57 ` Jens Lehmann
2010-04-17 6:33 ` Paul Mackerras
2010-04-17 12:20 ` Thomas Rast
2010-04-19 1:08 ` Paul Mackerras
2010-04-19 16:27 ` [PATCH v4' 1/2] " Thomas Rast
2010-04-19 16:27 ` [PATCH v4' 2/2] gitk: add the equivalent of diff --color-words Thomas Rast
2010-04-19 17:22 ` Jens Lehmann [this message]
2010-04-20 17:05 ` [PATCH v4' 1/2] gitk: do not parse " >" context as submodule change Jens Lehmann
2010-04-14 15:59 ` [PATCH v4 3/3] gitk: add the equivalent of diff --color-words Thomas Rast
2010-04-17 6:35 ` Paul Mackerras
2010-04-17 6:55 ` Junio C Hamano
2010-04-12 13:07 ` [PATCH v3 2/3] gitk: do not parse " >" context as submodule change Thomas Rast
2010-04-12 13:25 ` [PATCH v3.1] " Thomas Rast
2010-04-12 13:07 ` [PATCH v3 3/3] gitk: add the equivalent of diff --color-words Thomas Rast
2010-04-06 9:20 ` [PATCH 1/2] diff: add --word-diff option that generalizes --color-words Thomas Rast
2010-04-04 13:46 ` [PATCH 2/2] gitk: add the equivalent of diff --color-words Thomas Rast
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=4BCC9164.3080301@web.de \
--to=jens.lehmann@web.de \
--cc=git@vger.kernel.org \
--cc=paulus@samba.org \
--cc=trast@student.ethz.ch \
/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;
as well as URLs for NNTP newsgroup(s).