Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes at beginning and end of the line get not detected #373

Open
fbruetting opened this issue May 13, 2020 · 1 comment
Open

Changes at beginning and end of the line get not detected #373

fbruetting opened this issue May 13, 2020 · 1 comment

Comments

@fbruetting
Copy link

fbruetting commented May 13, 2020

Is you see in my screen shot, I commeted out two lines and also removed their comments. dsf however doesn’t detect that and instead renders them as complete new lines.

Meld for example detects that correctly and renders them as partly changed lines.

Bildschirmfoto von 2020-05-13 18-41-01

@OJFord
Copy link
Member

OJFord commented May 16, 2020

You can configure diff-highlight (be sure it's on your $PATH - it's usually distributed with git - and there are examples for configuring the colours in the readme) so that the comments and added comment characters would be highlighted differently to show the line is 'changed' rather than 'completely' different, but there is currently no mangling of the diff contents itself. (And if this were implemented, I'm sure it would be behind a config option.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants