diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-02-16 10:41:54 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-02-16 10:41:54 +0100 |
commit | 56f5e4eda7a99c9db58227ea88e30cc9d7403e44 (patch) | |
tree | 2bdfeea9f39c73c7660475fbe2618e9ddb1230f9 /repository.go | |
parent | 75ef36b63b4370d93c1fa9161d080eb706347242 (diff) | |
download | go-git-56f5e4eda7a99c9db58227ea88e30cc9d7403e44.tar.gz |
repository: documentation
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 3 |
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 { |