summaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-07-14 13:29:29 +0200
committerPatrick Steinhardt <ps@pks.im>2017-11-11 17:06:23 +0000
commit65dcb6453457fee640fe62008f9a395de58fd39a (patch)
tree2653363f67577e971da17936e831bf0c0f56cd72 /src/parse.c
parentef1395f315ba137be64744a3a6b9d784db44fded (diff)
downloadlibgit2-65dcb6453457fee640fe62008f9a395de58fd39a.tar.gz
patch_parse: use git_parse_contains_s
Instead of manually checking the parsing context's remaining length and comparing the leading bytes with a specific string, we can simply re-use the function `git_parse_ctx_contains_s`. Do so to avoid code duplication and to further decouple patch parsing from the parsing context's struct members.
Diffstat (limited to 'src/parse.c')
0 files changed, 0 insertions, 0 deletions