Skip to content

Removing of EOL produces incorrect patch #50

@andrewshadura

Description

@andrewshadura

Prepare a test repo:

git init
echo test > test
git add test
git commit -m test
echo -n test > test

This produces a diff:

diff --git a/test b/test
index 9daeafb9864c..30d74d258442 100644
--- a/test
+++ b/test
@@ -1 +1 @@
-test
+test
\ No newline at end of file

This is being parsed as:

diff --git a/test b/test
index 9daeafb9864c..30d74d258442 100644
--- a/test
+++ b/test
@@ -1,1 +1,1 @@
-test
\ No newline at end of file
+test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions