forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PatchUtil for parsing special patch format
`diff` generate incomplete header for adding or removing one line file. Eg. """ --- foo +++ bar @@ -1 +0,0 @@ # Should be @@ -1,1 +0,0 @@ -hello, world """ We set the default value to 1 when the size info is missing. Similar logic in `git apply` implementation: https://github.com/git/git/blob/5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9/apply.c#L1400 Fixes bazelbuild#9222 RELNOTES: None PiperOrigin-RevId: 264799477
- Loading branch information
1 parent
80c8052
commit 644060b
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters