# git diff bug? what problem may be here

2 messages from 2015-04-07 to 2015-04-07. Participants: KES.
Thread: https://gitlist.dev/t/39022

## KES, 2015-04-07 06:04

Subject: git diff bug? what problem may be here
Message-ID: <2396461428386674@web25m.yandex.ru>
URL: https://gitlist.dev/e/2396461428386674%40web25m.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?

```

## KES, 2015-04-07 17:27

Subject: git diff bug? what problem may be here
Message-ID: <723381428427660@web5j.yandex.ru>
URL: https://gitlist.dev/e/723381428427660%40web5j.yandex.ru
In-Reply-To: <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?

```
