diff options
Diffstat (limited to '_examples')
-rw-r--r-- | _examples/commit/main.go | 4 | ||||
-rw-r--r-- | _examples/context/main.go | 2 | ||||
-rw-r--r-- | _examples/storage/README.md | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/_examples/commit/main.go b/_examples/commit/main.go index aeb1d4f..556cb9c 100644 --- a/_examples/commit/main.go +++ b/_examples/commit/main.go @@ -12,13 +12,13 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing/object" ) -// Basic example of how to commit changes to the current branch to an existant +// Basic example of how to commit changes to the current branch to an existent // repository. func main() { CheckArgs("<directory>") directory := os.Args[1] - // Opens an already existant repository. + // Opens an already existent repository. r, err := git.PlainOpen(directory) CheckIfError(err) diff --git a/_examples/context/main.go b/_examples/context/main.go index 72885ff..f873055 100644 --- a/_examples/context/main.go +++ b/_examples/context/main.go @@ -9,7 +9,7 @@ import ( . "gopkg.in/src-d/go-git.v4/_examples" ) -// Gracefull cancellation example of a basic git operation such as Clone. +// Graceful cancellation example of a basic git operation such as Clone. func main() { CheckArgs("<url>", "<directory>") url := os.Args[1] diff --git a/_examples/storage/README.md b/_examples/storage/README.md index b7207ee..fc72e6f 100644 --- a/_examples/storage/README.md +++ b/_examples/storage/README.md @@ -8,7 +8,7 @@ ### and what this means ... *git* has as very well defined storage system, the `.git` directory, present on any repository. This is the place where `git` stores al the [`objects`](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects), [`references`](https://git-scm.com/book/es/v2/Git-Internals-Git-References) and [`configuration`](https://git-scm.com/docs/git-config#_configuration_file). This information is stored in plain files. -Our original **go-git** version was designed to work in memory, some time after we added support to read the `.git`, and now we have added support for fully customized [storages](https://godoc.org/github.com/src-d/go-git#Storer). +Our original **go-git** version was designed to work in memory, some time after we added support to read the `.git`, and now we have added support for fully customized [storages](https://godoc.org/gopkg.in/src-d/go-git.v4/storage#Storer). This means that the internal database of any repository can be saved and accessed on any support, databases, distributed filesystems, etc. This functionality is pretty similar to the [libgit2 backends](http://blog.deveo.com/your-git-repository-in-a-database-pluggable-backends-in-libgit2/) |