summaryrefslogtreecommitdiff
path: root/src/trailer.c
Commit message (Collapse)AuthorAgeFilesLines
* Make enum in src,tests and examples C90 compliant by removing trailing comma.Peter Pettersson2021-11-151-1/+1
|
* Fix coding style for pointerpunkymaniac2021-09-091-1/+1
| | | | Make some syntax change to follow coding style.
* trailer: check for memory allocation errorsPatrick Steinhardt2019-08-231-0/+5
| | | | | | | | | The "trailer.c" code has been copied mostly verbatim from git.git with minor adjustments, only. As git.git's `xmalloc` function, which aborts on memory allocation errors, has been swapped out for `git_malloc`, which doesn't abort, we may inadvertently access `NULL` pointers. Add checks to fix this.
* trailer: use size_t for sizesEdward Thomson2019-06-241-32/+41
|
* treewide: remove use of C++ style commentsPatrick Steinhardt2018-07-131-6/+6
| | | | | | | | | C++ style comment ("//") are not specified by the ISO C90 standard and thus do not conform to it. While libgit2 aims to conform to C90, we did not enforce it until now, which is why quite a lot of these non-conforming comments have snuck into our codebase. Do a tree-wide conversion of all C++ style comments to the supported C style comments to allow us enforcing strict C90 compliance in a later commit.
* rename find_trailer to extract_trailer_blockcharliesome/trailer-infoBrian Lopez2018-01-171-2/+2
|
* Change trailer API to return a simple arrayBrian Lopez2018-01-161-5/+19
|
* make separators const a macro as wellBrian Lopez2018-01-031-5/+4
|
* make comment_line_char const a macroBrian Lopez2018-01-031-4/+4
|
* trailer: use git__prefixcmp instead of starts_withCharlie Somerville2017-12-201-15/+3
|
* trailer: remove inline specifier on is_blank_lineCharlie Somerville2017-12-201-1/+1
|
* message: add routine for parsing trailers from messagesCharlie Somerville2017-12-191-0/+415
This is implemented in trailer.c and borrows a large amount of logic from Git core to ensure compatibility.