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

git diff bug? what problem may be here

From
KKES <kes-kes@yandex.ua>
Date
Apr 7, 2015, 06:04 UTC
Message-ID
<2396461428386674@web25m.yandex.ru>
When after editing I get this:
 mdi.Application= this;
 mdi.Class.TApplication.baseConstructor.apply( this, arguments );
git diff shows:
 
  mdi.Application= this;
- mdi.Class.TApplication.baseConstructor.apply( this, arguments );
 
- //We must not create/show application node because of this is the 'document.bo
- //It exists always so apply application properties to 'document.body' only
- this.updateDomNode();
+ mdi.Class.TApplication.baseConstructor.apply( this, arguments );
 },{
Notice same lines:
- mdi.Class.TApplication.baseConstructor.apply( this, arguments );
+ mdi.Class.TApplication.baseConstructor.apply( this, arguments );
But when I edit like this (notice no new line between mdi.Application and mdi.Class):
 mdi.Application= this;
 mdi.Class.TApplication.baseConstructor.apply( this, arguments );
Git diff shows:
  mdi.Application= this;
  mdi.Class.TApplication.baseConstructor.apply( this, arguments );
-
- //We must not create/show application node because of this is the 'document.body'.
- //It exists always so apply application properties to 'document.body' only
- this.updateDomNode();
 },{
Why new line cause same line in patch added and removed?
Next: KES
Message 1 of 2 in “git diff bug? what problem may be here”
  1. KESApr 7, 2015
  2. KESApr 7, 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.