summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorJochen Hunz <j.hunz@anchorpoint.app>2021-04-14 22:05:47 +0200
committerJochen Hunz <j.hunz@anchorpoint.app>2021-04-14 22:05:47 +0200
commit958205a33d9e9d078f41a9a3ac04dc7c657840c7 (patch)
tree52354de2213d4ddd8b205f37f894baa030b64261 /include/git2
parentac77d306f539938aa599ba81faee52854c262328 (diff)
downloadlibgit2-958205a33d9e9d078f41a9a3ac04dc7c657840c7.tar.gz
implement GIT_CHECKOUT_DRY_RUN to allow notifications without touching the working directory
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/checkout.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/git2/checkout.h b/include/git2/checkout.h
index 3c87001bf..d4c1cfa0b 100644
--- a/include/git2/checkout.h
+++ b/include/git2/checkout.h
@@ -177,6 +177,9 @@ typedef enum {
/** Normally checkout writes the index upon completion; this prevents that. */
GIT_CHECKOUT_DONT_WRITE_INDEX = (1u << 23),
+ /** Stop checkout after the notifications happend but before the working directory is touched. */
+ GIT_CHECKOUT_DRY_RUN = (1u << 24),
+
/**
* THE FOLLOWING OPTIONS ARE NOT YET IMPLEMENTED
*/