diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-11-29 12:22:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-29 12:22:37 +0100 |
commit | c07c778ed043429427533e2fd7549a3d54b903f1 (patch) | |
tree | 9fbd8da724791193905635a4ed789c6ddf8f39c5 /options.go | |
parent | 6dda959c4bda3a422a9a1c6425f92efa914c4d82 (diff) | |
parent | cbab840ef28888c2e85112b3b48294f7333ec187 (diff) | |
download | go-git-c07c778ed043429427533e2fd7549a3d54b903f1.tar.gz |
Merge pull request #665 from keybase/strib/gh-fast-forward-fetch
remote: support for non-force, fast-forward-only fetches
Diffstat (limited to 'options.go')
-rw-r--r-- | options.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -95,6 +95,9 @@ type PullOptions struct { // stored, if nil nothing is stored and the capability (if supported) // no-progress, is sent to the server to avoid send this information. Progress sideband.Progress + // Force allows the pull to update a local branch even when the remote + // branch does not descend from it. + Force bool } // Validate validates the fields and sets the default values. @@ -142,6 +145,9 @@ type FetchOptions struct { // Tags describe how the tags will be fetched from the remote repository, // by default is TagFollowing. Tags TagMode + // Force allows the fetch to update a local branch even when the remote + // branch does not descend from it. + Force bool } // Validate validates the fields and sets the default values. |