aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-01-30 11:40:51 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2017-01-30 11:40:51 +0100
commit45669655f026a31577f938ee70ae613c2e4af184 (patch)
tree7ac0cdf53b1d0175c1a7b9374678017560a18400 /repository.go
parent677a596cdb534f485ff8d9488e05855387a6ef00 (diff)
downloadgo-git-45669655f026a31577f938ee70ae613c2e4af184.tar.gz
test and comments improvements
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/repository.go b/repository.go
index 82ebb0c..1d69fe8 100644
--- a/repository.go
+++ b/repository.go
@@ -39,7 +39,7 @@ type Repository struct {
Progress sideband.Progress
}
-// Init create an empty git repository, based on the given Storer and worktree.
+// Init creates an empty git repository, based on the given Storer and worktree.
// The worktree Filesystem is optional, if nil a bare repository is created. If
// the given storer is not empty ErrRepositoryAlreadyExists is returned
func Init(s Storer, worktree billy.Filesystem) (*Repository, error) {
@@ -67,8 +67,8 @@ func Init(s Storer, worktree billy.Filesystem) (*Repository, error) {
// Open opens a git repository using the given Storer and worktree filesystem,
// if the given storer is complete empty ErrRepositoryNotExists is returned.
-// The worktree can be nil when the repository being open is bare, if the
-// a non-bare repository is not provied and worktree is nil, the err
+// The worktree can be nil when the repository being opened is bare, if the
+// repository is a normal one (not bare) and worktree is nil the err
// ErrWorktreeNotProvided is returned
func Open(s Storer, worktree billy.Filesystem) (*Repository, error) {
_, err := s.Reference(plumbing.HEAD)