diff options
author | Edward Thomson <ethomson@microsoft.com> | 2014-01-19 15:05:08 -0800 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2014-01-20 17:15:13 -0500 |
commit | e651e8e2b5c5eb021448fb0f0a36cb3f10fa9326 (patch) | |
tree | c987d53e643065e1983bfd75e1549deb2c3edbb3 /include/git2/checkout.h | |
parent | 6b92c99bcbf32de131754a4f750278f84bf5b766 (diff) | |
download | libgit2-e651e8e2b5c5eb021448fb0f0a36cb3f10fa9326.tar.gz |
Introduce diff3 mode for checking out conflicts
Diffstat (limited to 'include/git2/checkout.h')
-rw-r--r-- | include/git2/checkout.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/git2/checkout.h b/include/git2/checkout.h index b94a5e2ff..0faf4ab14 100644 --- a/include/git2/checkout.h +++ b/include/git2/checkout.h @@ -152,6 +152,12 @@ typedef enum { /** Don't overwrite ignored files that exist in the checkout target */ GIT_CHECKOUT_DONT_OVERWRITE_IGNORED = (1u << 19), + /** Write normal merge files for conflicts */ + GIT_CHECKOUT_CONFLICT_STYLE_MERGE = (1u << 20), + + /** Include common ancestor data in diff3 format files for conflicts */ + GIT_CHECKOUT_CONFLICT_STYLE_DIFF3 = (1u << 21), + /** * THE FOLLOWING OPTIONS ARE NOT YET IMPLEMENTED */ @@ -252,6 +258,7 @@ typedef struct git_checkout_opts { const char *target_directory; /** alternative checkout path to workdir */ + const char *ancestor_label; /** the name of the common ancestor side of conflicts */ const char *our_label; /** the name of the "our" side of conflicts */ const char *their_label; /** the name of the "their" side of conflicts */ } git_checkout_opts; |