diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-01-31 23:09:28 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-01-31 23:09:52 +0100 |
commit | a6197bd8c459c7d10717bd9486c17f6c8b3f7f88 (patch) | |
tree | 63180ec210c66fda317c87197d2f6bab508406b6 /doc.go | |
parent | 2308066c28d3cbbfb472fb634c3e10a1c7786cfc (diff) | |
download | go-git-a6197bd8c459c7d10717bd9486c17f6c8b3f7f88.tar.gz |
documentation changes
Diffstat (limited to 'doc.go')
-rw-r--r-- | doc.go | 41 |
1 files changed, 7 insertions, 34 deletions
@@ -1,37 +1,10 @@ -// Package git is a low level and highly extensible git client library for -// reading repositories from git servers. It is written in Go from scratch, -// without any C dependencies. +// A highly extensible git implementation in pure Go. // -// We have been following the open/close principle in its design to facilitate -// extensions. +// go-git aims to reach the completeness of libgit2 or jgit, nowadays covers the +// majority of the plumbing read operations and some of the main write +// operations, but lacks the main porcelain operations such as merges. // -// Small example extracting the commits from a repository: -// -// func ExampleBasic_printCommits() { -// r := git.NewMemoryRepository() -// o := &git.CloneOptions{ -// URL: "https://github.com/src-d/go-git", -// } -// if err := r.Clone(o); err != nil { -// panic(err) -// } -// -// iter, err := r.Commits() -// if err != nil { -// panic(err) -// } -// defer iter.Close() -// -// for { -// commit, err := iter.Next() -// if err != nil { -// if err == io.EOF { -// break -// } -// panic(err) -// } -// -// fmt.Println(commit) -// } -// } +// It is highly extensible, we have been following the open/close principle in +// its design to facilitate extensions, mainly focusing the efforts on the +// persistence of the objects. package git // import "srcd.works/go-git.v4" |