summaryrefslogtreecommitdiff
path: root/include/git2/diff.h
diff options
context:
space:
mode:
authorGregory Herrero <gregory.herrero@oracle.com>2019-11-07 13:08:51 +0100
committerGregory Herrero <gregory.herrero@oracle.com>2019-11-19 09:33:12 +0100
commitb921964b25c14c8dfeb26d1a5efedb28ee9e7284 (patch)
tree4951bf22e505d7921c975f1545e692243ecb7d7b /include/git2/diff.h
parentaccd78486523ef875a941ed65b02c56902074d76 (diff)
downloadlibgit2-b921964b25c14c8dfeb26d1a5efedb28ee9e7284.tar.gz
diff_print: add support for GIT_DIFF_FORMAT_PATCH_ID.
Git is generating patch-id using a stripped down version of a patch where hunk header and index information are not present. Signed-off-by: Gregory Herrero <gregory.herrero@oracle.com>
Diffstat (limited to 'include/git2/diff.h')
-rw-r--r--include/git2/diff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h
index 73c5e55b9..89733a770 100644
--- a/include/git2/diff.h
+++ b/include/git2/diff.h
@@ -1093,6 +1093,7 @@ typedef enum {
GIT_DIFF_FORMAT_RAW = 3u, /**< like git diff --raw */
GIT_DIFF_FORMAT_NAME_ONLY = 4u, /**< like git diff --name-only */
GIT_DIFF_FORMAT_NAME_STATUS = 5u, /**< like git diff --name-status */
+ GIT_DIFF_FORMAT_PATCH_ID = 6u, /**< git diff as used by git patch-id */
} git_diff_format_t;
/**