-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
This library does not correctly parse git diffs for empty files that are added or removed. Below are sample diffs and the resulting parse() output:
Adding an empty file
diff --git a/a.txt b/a.txt
new file mode 100644
index 0000000..7898192{
"hunks": [],
"oldEndingNewLine": true,
"newEndingNewLine": true,
"newMode": "100644",
"oldRevision": "0000000",
"newRevision": "7898192",
"type": "modify"
}Removing an empty file
diff --git a/a.txt b/a.txt
deleted file mode 100644
index 7898192..0000000{
"hunks": [],
"oldEndingNewLine": true,
"newEndingNewLine": true,
"oldMode": "100644",
"oldRevision": "7898192",
"newRevision": "0000000",
"type": "modify"
}Metadata
Metadata
Assignees
Labels
No labels