aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-07-22 09:50:40 +0100
committerJeremy Stribling <strib@alum.mit.edu>2017-11-27 11:38:14 -0800
commit702718fd59be0aa4b8bf8492403c465107ca17af (patch)
tree00724b2409b9dee0f9fe5fc6b86d9da2cf91f0ce /options.go
parent147a1b7d2e8a08d5c6228de0f98b3f5a1497f95a (diff)
downloadgo-git-702718fd59be0aa4b8bf8492403c465107ca17af.tar.gz
Support non-force fetches
Diffstat (limited to 'options.go')
-rw-r--r--options.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/options.go b/options.go
index 7036bc1..d2cec4b 100644
--- a/options.go
+++ b/options.go
@@ -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.