aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--repository.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/repository.go b/repository.go
index 5deddfb..8f1aac2 100644
--- a/repository.go
+++ b/repository.go
@@ -53,6 +53,9 @@ func NewPlainRepository() *Repository {
}
}
+// Pull connect and fetch the given branch from the given remote, the branch
+// should be provided with the full path not only the abbreviation, eg.:
+// "refs/heads/master"
func (r *Repository) Pull(remoteName, branch string) (err error) {
remote, ok := r.Remotes[remoteName]
if !ok {