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
The parser interprets the --- at the beginning of a diffstat as a file modified in a patch instead of ignoring at as part of the patch message. Below is an example patch generated by git format-patch that will fail to be parsed because of the diffstat:
From c285d896b6ef509291860351d246e82a83e9d96a Mon Sep 17 00:00:00 2001
From: Foo Bar <[email protected]>
Date: Mon, 9 Sep 2024 21:14:30 +0200
Subject: [PATCH] Test commit
---
modified_file | 4 +++-
new_file | 4 ++++
removed_file | 3 ---
3 files changed, 7 insertions(+), 4 deletions(-)
create mode 100644 new_file
delete mode 100644 removed_file
diff --git a/modified_file b/modified_file
index c368d8f..922fd19 100644
--- a/modified_file+++ b/modified_file@@ -1,5 +1,7 @@
This is the original content.
-This should be updated.+This is now updated.++This is a new line.
This will stay.
diff --git a/new_file b/new_file
new file mode 100644
index 0000000..7056bca
--- /dev/null+++ b/new_file@@ -0,0 +1,4 @@+This was missing!+Adding it now.++Only for testing purposes.diff --git a/removed_file b/removed_file
deleted file mode 100644
index 9b89750..0000000
--- a/removed_file+++ /dev/null@@ -1,3 +0,0 @@-This content shouldn't be here.--This file will be removed.
The text was updated successfully, but these errors were encountered:
gagath
added a commit
to gagath/patch-rs
that referenced
this issue
Sep 22, 2024
The parser was not accepting diffstat from git format-patch files.
This patch fixes this issue and rewrites the git.diff file to contain
the full output of a git format-patch command to exercise the parser
(minus the git version, as this would trigger an assert error because of
remaining content).
Fixesuniphil#27
gagath
added a commit
to gagath/patch-rs
that referenced
this issue
Sep 22, 2024
The parser was not accepting diffstat from git format-patch files.
This patch fixes this issue and rewrites the git.diff file to contain
the full output of a git format-patch command to exercise the parser
(minus the git version, as this would trigger an assert error because of
remaining content).
Fixesuniphil#27
The parser interprets the
---
at the beginning of a diffstat as a file modified in a patch instead of ignoring at as part of the patch message. Below is an example patch generated bygit format-patch
that will fail to be parsed because of the diffstat:The text was updated successfully, but these errors were encountered: