You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
no diff is shown at all. this is not a real bug as there is actually nothing to show, but having a diff header with nothing inside it looks off. maybe adding a File added with no content or similar would help?
Showcase:
Note
The counterpart fix(es) could maybe be applied to deleted empty files too
Reproduction
Use FileDiff#render on the output of parsePatchFiles with this data:
--- /dev/null
+++ whatever.js
OR
diff --git a/whatever.js b/whatever.js
new file mode 100644
index 000000000000..e69de29bb2d1
Prerequisites
Describe the issue
Parsing works fine with empty files added in a PR, but:
-0is present despite not being relevant at all. the+0is arguably a bit weird too, but still better than what GitHub does: showing "whitespace-only change" with no diff count.File added with no contentor similar would help?Showcase:

Note
The counterpart fix(es) could maybe be applied to deleted empty files too
Reproduction
Use
FileDiff#renderon the output ofparsePatchFileswith this data:OR
What browser(s) are you seeing the problem on?
Chrome
What version of @pierre/diffs are you using?
1.0.11