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

Re: diff not finding difference

From
JZJack Adrian Zappa <adrianh.bsc@gmail.com>
Date
Sep 24, 2015, 21:12 UTC
Message-ID
<CAKepmaihyVS3hiAS4bZUfvt-r0ZWycPRkWnokaS7Gx2hEnjT3w@mail.gmail.com>
In-Reply-To
<CAKepmajegSMO91YZOe+P_BH2kzzR=RMqCE94XRQSfZzOVYKt6A@mail.gmail.com>

On Thu, Sep 24, 2015 at 5:09 PM, Jack Adrian Zappa <adrianh.bsc@gmail.com> wrote:

Show 34 quoted lines
> This is a weird one:
>
> [file-1 begin]
>
> abcd efg hijklmnop
>
> [file-1 end]
>
> [file-2 begin]
>
> blah blah blah
> /////////////////////////////////////////////////////////////////////////////////
> abdc boo ya!
>
> [file-2 end]
>
> Do a diff between these and it won't find any difference.
>
> Same with the following two lines, each in a different file:
> sabc fed ghi jkl
> abc def ghi jkl
>
> I first noticed this on the command line git and then in VS2013.  The
> original problem was like my first example.  The files were much
> longer, but all that git would see is the addition of the line of
> ////..., but not the removal of the original line.
>
> I've tried some other simple file changes with similar results.
> Something seems to be definitely broken in git diff. :(
>
> Command line version of git is 1.9.5 msysgit.0.
>
>
> A

BTW, I've upgraded to git version 2.5.3.windows.1 and the problem still persists.

A
Previous: Jack Adrian ZappaNext: Johannes Schindelin
Message 2 of 4 in “Fwd: diff not finding difference”
  1. Jack Adrian ZappaSep 24, 2015
  2. Jack Adrian ZappaSep 24, 2015
  3. Johannes SchindelinSep 25, 2015
  4. Michael J GruberSep 25, 2015

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.