From: Yojem <yojem@gmx.com>
To: git@vger.kernel.org
Subject: [gitk] display error for angle brackets in diff
Date: Sat, 8 Aug 2015 05:33:35 +0000 (UTC) [thread overview]
Message-ID: <loom.20150808T073217-282@post.gmane.org> (raw)
I'm trying to report a bug that I've know about for a year and half. I first
tried to report it to this mailing list a year ago, but the message was
lost. Here's a post I made on reddit 6 months ago:
http://www.reddit.com/r/git/comments/2twvsz/please_help_me_report_this_gitk_bug_to_the_git/
The problem is that diffs with angle brackets are displayed incorrectly in gitk.
How to reproduce the bug:
Create a file with the following, and commit:
x < 1
y > 2
Modify it to this, and commit:
z < 1
w > 2
Then view the results with:
gitk --color-words
You will see:
"Diff" shows bogus removal on 1st line and bogus addition on 2nd line.
"Old version" cuts off at right angle bracket.
"New Version" cuts off at left angle bracket.
I personally use a 2-line patch to fix this by disabling/breaking the
feature that does string comparisons for " >" and " <", but I know that's
not the correct fix, so I'm not including it in this post.
reply other threads:[~2015-08-08 5:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=loom.20150808T073217-282@post.gmane.org \
--to=yojem@gmx.com \
--cc=git@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).