aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-01-12 08:45:16 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2017-01-12 08:45:16 +0100
commit3952f0130a68c7574ffd99e17536d11f3b4ae0ed (patch)
treeef9b2cff888b581d118c41fe7f3fd07178ad10b0 /remote.go
parent0c6c986ddd9855c8fd5f28771f824d7da73d4dc3 (diff)
downloadgo-git-3952f0130a68c7574ffd99e17536d11f3b4ae0ed.tar.gz
doc: clarify return values of Pull/Fetch. (#205)
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote.go b/remote.go
index e8d56fc..1894fdc 100644
--- a/remote.go
+++ b/remote.go
@@ -46,6 +46,8 @@ func (r *Remote) String() string {
}
// Fetch fetches references from the remote to the local repository.
+// Returns nil if the operation is successful, NoErrAlreadyUpToDate if there are
+// no changes to be fetched, or an error.
func (r *Remote) Fetch(o *FetchOptions) error {
_, err := r.fetch(o)
return err