This commit adds barebones capacity to generate diffs from two trees and to emit those as git-style diffs (via `Patch.String`), or to enumerate the files/hunks/lines in the diff to emit the data yourself. The walk functions have been implemented in the same manner as the Odb walking methods. Note that not all of the functionality is implemented for either the `git_diff_*` nor the `git_patch_*` functions, and there are unexposed constants which would likely be useful to add. |
||
---|---|---|
LICENSE | ||
README.md | ||
blob.go | ||
checkout.go | ||
commit.go | ||
config.go | ||
diff.go | ||
git.go | ||
git_test.go | ||
index.go | ||
index_test.go | ||
object.go | ||
object_test.go | ||
odb.go | ||
odb_test.go | ||
packbuilder.go | ||
patch.go | ||
reference.go | ||
reference_test.go | ||
repository.go | ||
submodule.go | ||
tree.go | ||
walk.go | ||
wrapper.c |
README.md
git2go
Go bindings for libgit2. These bindings are for top-of-the-branch libgit2, and they move fast, things may or may not work. Operator get me Beijing-jing-jing-jing!
Installing
Just go get github.com/libgit2/git2go
. You'll need to have top-of-the-branch libgit2 from development installed in your system and available via pkg-config
. These bindings are in sync with the top of development
.
License
M to the I to the T. See the LICENSE file if you've never seen a MIT license before.
Authors
- Carlos Martín (@carlosmn)
- Vicent Martí (@vmg)