diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2019-05-16 09:21:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-16 09:21:15 +0200 |
commit | 7bdcd80a8c4ff0dab240d603258ba60b28102683 (patch) | |
tree | 53bfb94ef1a2ed250b9edc60f803d6066314e29a /options.go | |
parent | 24de5efe77a202ddba83abb4d14095474dcdf1f6 (diff) | |
parent | d1e34a7675bf8bb95f3c40c27d446adc5862eb62 (diff) | |
download | go-git-7bdcd80a8c4ff0dab240d603258ba60b28102683.tar.gz |
Merge pull request #1145 from linuxerwang/master
Worktree: keep local changes when checkout branch
Diffstat (limited to 'options.go')
-rw-r--r-- | options.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -242,6 +242,11 @@ type CheckoutOptions struct { // Force, if true when switching branches, proceed even if the index or the // working tree differs from HEAD. This is used to throw away local changes Force bool + // Keep, if true when switching branches, local changes (the index or the + // working tree changes) will be kept so that they can be committed to the + // target branch. Force and Keep are mutually exclusive, should not be both + // set to true. + Keep bool } // Validate validates the fields and sets the default values. |