48a02566d6
When marshalling diff callback data to Go structs, any `char*` need to be pre-emptively copied onto Go's heap as they're invalidated as soon as our callback function returns. This patch adds this extra copy before sending the value to the channel, which fixes a bug wherein `DiffLine.Content`, `DiffFile.Path` and `DiffHunk.Header` would previously return garbage data. |
||
---|---|---|
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)