aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/email/patch.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/email: parse diff more tolerablyPimyn Girgis2025-11-031-2/+6
| | | | | Accept empty lines as part of a diff. Fixes #6403
* pkg/email: handle bufio.ErrTooLongAleksandr Nogikh2023-04-071-1/+8
| | | | | bufio.Scanner has a limit on the maximum line size. Don't panic in this case.
* pkg/email: move patch regexps to globalsAleksandr Nogikh2023-04-071-7/+8
| | | | There's no need to re-initialize them every time.
* pkg/email: refactor ParsePatchAleksandr Nogikh2022-12-051-37/+5
| | | | | Currently the function returns the values that are not being used anywhere. Refactor it.
* all: fix dup types in func argsDmitry Vyukov2020-07-041-1/+1
|
* pkg/email: support quilt patch formatAndrey Konovalov2019-04-231-14/+32
| | | | | Quilt uses a slightly different patch format to traditional git diff/format-patch. Support it.
* pkg/email: truncate garbage after patchesDmitry Vyukov2017-11-171-1/+2
|
* pkg/email: move patch parsing from pkg/kernelDmitry Vyukov2017-06-301-0/+69
ParsePatch is used by appengine app. Appengine apps can't depend on syscall/unsafe, but pkg/kernel currently does. Move patch parsing to pkg/email which does not depend on syscall/unsafe.