This repository was archived by the owner on Sep 11, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ func (r *Remote) String() string {
46
46
}
47
47
48
48
// Fetch fetches references from the remote to the local repository.
49
+ // Returns nil if the operation is successful, NoErrAlreadyUpToDate if there are
50
+ // no changes to be fetched, or an error.
49
51
func (r * Remote ) Fetch (o * FetchOptions ) error {
50
52
_ , err := r .fetch (o )
51
53
return err
Original file line number Diff line number Diff line change @@ -306,7 +306,9 @@ func (r *Repository) IsEmpty() (bool, error) {
306
306
})
307
307
}
308
308
309
- // Pull incorporates changes from a remote repository into the current branch
309
+ // Pull incorporates changes from a remote repository into the current branch.
310
+ // Returns nil if the operation is successful, NoErrAlreadyUpToDate if there are
311
+ // no changes to be fetched, or an error.
310
312
func (r * Repository ) Pull (o * PullOptions ) error {
311
313
if err := o .Validate (); err != nil {
312
314
return err
@@ -333,6 +335,8 @@ func (r *Repository) Pull(o *PullOptions) error {
333
335
}
334
336
335
337
// Fetch fetches changes from a remote repository.
338
+ // Returns nil if the operation is successful, NoErrAlreadyUpToDate if there are
339
+ // no changes to be fetched, or an error.
336
340
func (r * Repository ) Fetch (o * FetchOptions ) error {
337
341
if err := o .Validate (); err != nil {
338
342
return err
You can’t perform that action at this time.
0 commit comments