diff options
author | Edward Thomson <ethomson@github.com> | 2016-08-23 23:38:39 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-08-24 09:08:57 -0500 |
commit | b859faa61ce3f1fda5c29ac1e72a3d58fee2ede6 (patch) | |
tree | 976a27f8827db4200a172720b547fbf7ec1db119 /src/diff_parse.h | |
parent | c60210d36780a39db669e52d6d592d339c6a2ed3 (diff) | |
download | libgit2-ethomson/patch_from_diff.tar.gz |
Teach `git_patch_from_diff` about parsed diffsethomson/patch_from_diff
Ensure that `git_patch_from_diff` can return the patch for parsed diffs,
not just generate a patch for a generated diff.
Diffstat (limited to 'src/diff_parse.h')
-rw-r--r-- | src/diff_parse.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/diff_parse.h b/src/diff_parse.h new file mode 100644 index 000000000..c47d4cbc9 --- /dev/null +++ b/src/diff_parse.h @@ -0,0 +1,18 @@ +/* + * Copyright (C) the libgit2 contributors. All rights reserved. + * + * This file is part of libgit2, distributed under the GNU GPL v2 with + * a Linking Exception. For full terms see the included COPYING file. + */ +#ifndef INCLUDE_diff_parse_h__ +#define INCLUDE_diff_parse_h__ + +#include "diff.h" + +typedef struct { + struct git_diff base; + + git_vector patches; +} git_diff_parsed; + +#endif |