summaryrefslogtreecommitdiff
path: root/checkout.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2015-07-10 00:31:32 +0200
committerCarlos Martín Nieto <[email protected]>2015-07-10 00:31:32 +0200
commit28dee704cafd347599ae55f30441275b219def03 (patch)
treedc810c3c61760a981f61d6b006286d3e51099cbb /checkout.go
parentb4ade2b9c693488aead837a36bc50e86d04950a2 (diff)
Bring back CheckoutForce
This was mistakenly deleted when the SafeCreate was replaced with RecreateMissing.
Diffstat (limited to 'checkout.go')
-rw-r--r--checkout.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/checkout.go b/checkout.go
index d747344..e0c067e 100644
--- a/checkout.go
+++ b/checkout.go
@@ -15,6 +15,7 @@ type CheckoutStrategy uint
const (
CheckoutNone CheckoutStrategy = C.GIT_CHECKOUT_NONE // Dry run, no actual updates
CheckoutSafe CheckoutStrategy = C.GIT_CHECKOUT_SAFE // Allow safe updates that cannot overwrite uncommitted data
+ CheckoutForce CheckoutStrategy = C.GIT_CHECKOUT_FORCE // Allow all updates to force working directory to look like index
CheckoutRecreateMissing CheckoutStrategy = C.GIT_CHECKOUT_RECREATE_MISSING // Allow checkout to recreate missing files
CheckoutAllowConflicts CheckoutStrategy = C.GIT_CHECKOUT_ALLOW_CONFLICTS // Allow checkout to make safe updates even if conflicts are found
CheckoutRemoveUntracked CheckoutStrategy = C.GIT_CHECKOUT_REMOVE_UNTRACKED // Remove untracked files not in index (that are not ignored)