#ifndef INCLUDE_patch_parse_h__
#define INCLUDE_patch_parse_h__
#include "common.h"
#include "parse.h"
#include "patch.h"
typedef struct {
git_refcount rc;
git_patch_options opts;
git_parse_ctx parse_ctx;
} git_patch_parse_ctx;
extern git_patch_parse_ctx *git_patch_parse_ctx_init(
const char *content,
size_t content_len,
const git_patch_options *opts);
extern void git_patch_parse_ctx_free(git_patch_parse_ctx *ctx);
extern int git_patch_from_buffer(
git_patch **out,
const char *contents,
size_t contents_len,
const git_patch_options *opts);
extern int git_patch_parse(
git_patch **out,
git_patch_parse_ctx *ctx);
extern int git_patch_parsed_from_diff(git_patch **, git_diff *, size_t);
#endif