diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2023-04-07 15:28:58 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2023-04-10 14:21:16 +0100 |
| commit | db2a794dda2b6f92291b3758507f863f39314c72 (patch) | |
| tree | 53c5b2d77c6c38cf26fecc90e91809df0397fa46 /src/libgit2/patch.h | |
| parent | 7f70484799df14dbc666b3c395ded690d1a5a402 (diff) | |
| download | libgit2-db2a794dda2b6f92291b3758507f863f39314c72.tar.gz | |
diff: parse patches with sha256
Diffstat (limited to 'src/libgit2/patch.h')
| -rw-r--r-- | src/libgit2/patch.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libgit2/patch.h b/src/libgit2/patch.h index 1e1471ed6..86328e886 100644 --- a/src/libgit2/patch.h +++ b/src/libgit2/patch.h @@ -59,9 +59,15 @@ typedef struct { * This prefix will be removed when looking for files. The default is 1. */ uint32_t prefix_len; + + /** + * The type of object IDs in the patch file. The default is + * `GIT_OID_DEFAULT`. + */ + git_oid_t oid_type; } git_patch_options; -#define GIT_PATCH_OPTIONS_INIT { 1 } +#define GIT_PATCH_OPTIONS_INIT { 1, GIT_OID_DEFAULT } extern int git_patch__to_buf(git_str *out, git_patch *patch); extern void git_patch_free(git_patch *patch); |
