Closed
Description
- Gitea version (or commit ref): master, 1.13-rc1, 1.12.x and earlier
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL): Compare https://try.gitea.io/arandomer/pathological/commit/88612bf69b8b2035bf41ae4fdbab0ae399238d60 with
https://try.gitea.io/arandomer/pathological/commit/88612bf69b8b2035bf41ae4fdbab0ae399238d60.diff - No
- Not relevant
- Yes (provide example URL): Compare https://try.gitea.io/arandomer/pathological/commit/88612bf69b8b2035bf41ae4fdbab0ae399238d60 with
- Log gist:
Description
First noted in https://codeberg.org/Codeberg/Community/issues/308
Gitea's ParsePatch code in services/gitdiff/gitdiff.go will skip any diff lines that start with "+++ "
or "--- "
.