From: Stefan Beller <sbeller@google.com>
To: gthepiper@gmail.com
Cc: git <git@vger.kernel.org>
Subject: Re: Possible bug: identical lines added/removed in git diff
Date: Mon, 27 Aug 2018 10:47:09 -0700 [thread overview]
Message-ID: <CAGZ79kZ1BVTLnNYSs+NjEO1T1-PySSdZzVU-0ZfivjT_pfvviQ@mail.gmail.com> (raw)
In-Reply-To: <CAE6=WB_4_PhjfQpubFcYkNKejfDr22s-y0nPQKw5Yd4GVaN4Yw@mail.gmail.com>
On Sun, Aug 26, 2018 at 6:54 PM Gabriel Holodak <gthepiper@gmail.com> wrote:
>
> I think I'm running into a bug with git diff on v2.18.0.
I cannot reproduce with the two files attached.
I suspected you might have a different diff algorithm configured,
so I tested
git diff --no-index old new
git diff --patience --no-index old new
git diff --histogram --no-index old new
all of which do not reproduce the issue.
Are there any encoding issues locally (Which platform
are you on?) or in transit (Could you re-download the files
from [1] and confirm it still produces this bug?)
[1] https://public-inbox.org/git/CAE6=WB_4_PhjfQpubFcYkNKejfDr22s-y0nPQKw5Yd4GVaN4Yw@mail.gmail.com/
> where the "DWIDTH 8 0" and "BITMAP" lines are removed and added,
> despite being identical. It only seems to be happening around this
> section of the file, for the U+00F0 character. This also seems close
> to a minimal reproduction of the issue.
Could you cut down to a real minimal reproduction, i.e. just these 20
lines or so?
> If I git add --patch and stage
> a few hunks, then the duplicated lines seem to disappear.
Do you have any smudge filters or configuration regarding
line endings?
Are the lines really different or the same ? (Can you inspect with a
hex editor, maybe there are different kinds of invisible white spaces?)
> Steps to reproduce:
> git diff --no-index unitera_bold_italic.bdf.old unitera_bold_italic.bdf.new
> (It also happens inside a repo, this just seemed the easiest way to
> demonstrate.)
Thanks,
Stefan
next prev parent reply other threads:[~2018-08-27 17:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-27 1:54 Possible bug: identical lines added/removed in git diff Gabriel Holodak
2018-08-27 17:47 ` Stefan Beller [this message]
2018-08-30 2:10 ` Gabriel Holodak
2018-08-30 2:54 ` Jeff King
2018-08-30 19:16 ` Stefan Beller
2018-08-30 19:20 ` Jeff King
2018-08-30 19:28 ` Stefan Beller
2018-08-31 21:38 ` Johannes Schindelin
2018-09-01 15:23 ` Stefan Beller
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=CAGZ79kZ1BVTLnNYSs+NjEO1T1-PySSdZzVU-0ZfivjT_pfvviQ@mail.gmail.com \
--to=sbeller@google.com \
--cc=git@vger.kernel.org \
--cc=gthepiper@gmail.com \
/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).