summaryrefslogtreecommitdiff
path: root/src/patch_parse.c
Commit message (Expand)AuthorAgeFilesLines
* str: introduce `git_str` for internal, `git_buf` is externalethomson/gitstrEdward Thomson2021-10-171-20/+20
* patch: use GIT_ASSERTEdward Thomson2020-11-271-1/+2
* Merge pull request #5620 from dlax/parse-patch-add-delete-no-indexEdward Thomson2020-10-041-0/+1
|\
| * patch_parse: handle absence of "index" header for new/deleted casesDenis Laxalde2020-08-291-0/+1
* | patch_parse: silence maybe-uninitialized warningPatrick Steinhardt2020-09-181-1/+1
|/
* tree-wide: mark local functions as staticPatrick Steinhardt2020-06-091-1/+1
* patch: correctly handle mode changes for renamesPatrick Steinhardt2020-03-261-0/+1
* patch_parse: fix undefined behaviour due to arithmetic on NULL pointersPatrick Steinhardt2019-12-131-2/+6
* patch_parse: fix out-of-bounds reads caused by integer underflowPatrick Steinhardt2019-11-281-1/+1
* Merge pull request #5306 from herrerog/patchidPatrick Steinhardt2019-11-281-4/+9
|\
| * patch_parse: correct parsing of patch containing not shown binary data.Gregory Herrero2019-11-191-4/+9
* | odb: use `git_object_size_t` for object sizeEdward Thomson2019-11-221-2/+2
|/
* patch_parse: use paths from "---"/"+++" lines for binary patchesPatrick Steinhardt2019-11-101-5/+11
* patch_parse: fix segfault when header path contains whitespace onlyPatrick Steinhardt2019-11-051-12/+9
* patch_parse: detect overflow when calculating old/new line positionPatrick Steinhardt2019-10-211-4/+10
* patch_parse: fix out-of-bounds read with No-NL linesPatrick Steinhardt2019-10-191-1/+3
* patch_parse: reject empty path namesPatrick Steinhardt2019-10-191-0/+4
* patch_parse: reject patches with multiple old/new pathsPatrick Steinhardt2019-10-191-2/+17
* patch_parse: handle patches without extended headersDenis Laxalde2019-10-161-0/+1
* patch_parse: handle patches with new empty filesDenis Laxalde2019-09-281-0/+1
* parse: remove use of variadic macros which are not C89 compliantPatrick Steinhardt2019-08-011-0/+12
* patch_parse: fix segfault due to line containing static contentsPatrick Steinhardt2019-07-201-1/+1
* Merge pull request #5159 from pks-t/pks/patch-parse-old-missing-nlEdward Thomson2019-07-201-3/+43
|\
| * patch_parse: ensure valid patch output with EOFNLErik Aigner2019-07-111-5/+34
| * patch_parse: handle missing newline indicator in old filePatrick Steinhardt2019-07-111-1/+12
* | patch_parse: do not depend on parsed buffer's lifetimePatrick Steinhardt2019-07-051-1/+5
|/
* patch: use size_t for size when parsingEdward Thomson2019-06-241-1/+1
* patch_parse.c: Handle CRLF in parse_header_startDrew DeVault2019-04-051-1/+2
* patch_parse: fix parsing addition/deletion of file with spacePatrick Steinhardt2019-03-291-2/+2
* patch_parse: improve formattingPatrick Steinhardt2019-03-291-18/+12
* patch: explicitly cast down in parse_header_percentEdward Thomson2019-01-251-1/+1
* git_error: use new names in internal APIs and usageEdward Thomson2019-01-221-8/+8
* patch_parse: remove unused function `parse_number`Patrick Steinhardt2018-11-141-20/+0
* patch_parse: populate line numbers while parsing diffsEtienne Samson2018-06-191-0/+7
* Convert usage of `git_buf_free` to new `git_buf_dispose`Patrick Steinhardt2018-06-101-4/+4
* Explicitly mark fallthrough cases with commentsPatrick Steinhardt2018-02-161-0/+1
* Merge pull request #4285 from pks-t/pks/patches-with-whitespaceEdward Thomson2017-12-231-8/+42
|\
| * patch_parse: allow parsing ambiguous patch headersPatrick Steinhardt2017-11-111-0/+16
| * patch_parse: treat complete line after "---"/"+++" as pathPatrick Steinhardt2017-11-111-8/+26
* | refcount: make refcounting conform to aliasing rulesPatrick Steinhardt2017-11-181-1/+1
|/
* parse: always initialize line pointerPatrick Steinhardt2017-11-111-4/+1
* parse: implement `git_parse_peek`Patrick Steinhardt2017-11-111-5/+13
* parse: implement and use `git_parse_advance_digit`Patrick Steinhardt2017-11-111-19/+9
* patch_parse: use git_parse_contains_sPatrick Steinhardt2017-11-111-2/+2
* parse: extract parse modulePatrick Steinhardt2017-11-111-215/+136
* patch_parse: fix parsing patches only containing exact renamesPatrick Steinhardt2017-09-011-0/+1
* patch_parse: implement state machine for parsing patch headersPatrick Steinhardt2017-08-251-46/+81
* Make sure to always include "common.h" firstPatrick Steinhardt2017-07-031-1/+3
* patch_parse: check if advancing over header newline succeedsPatrick Steinhardt2017-03-211-2/+2
* patch_parse: fix parsing minimal trailing diff linePatrick Steinhardt2017-03-141-2/+3