diff options
author | Nick Thomas <nick@gitlab.com> | 2017-07-22 09:50:40 +0100 |
---|---|---|
committer | Jeremy Stribling <strib@alum.mit.edu> | 2017-11-27 11:38:14 -0800 |
commit | 702718fd59be0aa4b8bf8492403c465107ca17af (patch) | |
tree | 00724b2409b9dee0f9fe5fc6b86d9da2cf91f0ce /options.go | |
parent | 147a1b7d2e8a08d5c6228de0f98b3f5a1497f95a (diff) | |
download | go-git-702718fd59be0aa4b8bf8492403c465107ca17af.tar.gz |
Support non-force 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. |