From 56f5e4eda7a99c9db58227ea88e30cc9d7403e44 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Tue, 16 Feb 2016 10:41:54 +0100 Subject: repository: documentation --- repository.go | 3 +++ 1 file changed, 3 insertions(+) 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 { -- cgit