Git to Go; bindings for libgit2. Like McDonald's but tastier.
Go to file
lye 48a02566d6 Pre-emptively copy data when marshalling diff callback data.
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.
2014-02-23 18:51:56 -06:00
LICENSE Initial commit 2013-03-05 20:53:04 +01:00
README.md Update README 2013-03-06 17:06:01 +01:00
blob.go Don't repeat the pkg-config line 2013-11-14 00:23:04 +01:00
checkout.go Lock the OS thread when acessing errors 2013-12-18 16:18:32 +01:00
commit.go Lock the OS thread when acessing errors 2013-12-18 16:18:32 +01:00
config.go Lock the OS thread when acessing errors 2013-12-18 16:18:32 +01:00
diff.go Pre-emptively copy data when marshalling diff callback data. 2014-02-23 18:51:56 -06:00
git.go Lock the OS thread when acessing errors 2013-12-18 16:18:32 +01:00
git_test.go Add @carlosmn's tests 2013-04-16 23:18:35 +02:00
index.go Lock the OS thread when acessing errors 2013-12-18 16:18:32 +01:00
index_test.go Add @carlosmn's tests 2013-04-16 23:18:35 +02:00
object.go ObjectType: capitalise Tag 2013-11-14 00:24:44 +01:00
object_test.go Camel-case constants 2013-09-12 10:40:57 +02:00
odb.go Lock the OS thread when acessing errors 2013-12-18 16:18:32 +01:00
odb_test.go Remove leftover reference to old const 2013-09-22 00:05:37 +02:00
packbuilder.go Lock the OS thread when acessing errors 2013-12-18 16:18:32 +01:00
patch.go Add partial diff/patch functionality. 2014-02-20 00:29:03 -06:00
reference.go Lock the OS thread when acessing errors 2013-12-18 16:18:32 +01:00
reference_test.go Merge pull request #36 from libgit2/ref-iter 2013-09-17 08:03:50 -07:00
repository.go Add partial diff/patch functionality. 2014-02-20 00:29:03 -06:00
submodule.go Lock the OS thread when acessing errors 2013-12-18 16:18:32 +01:00
tree.go Lock the OS thread when acessing errors 2013-12-18 16:18:32 +01:00
walk.go Lock the OS thread when acessing errors 2013-12-18 16:18:32 +01:00
wrapper.c Add partial diff/patch functionality. 2014-02-20 00:29:03 -06:00

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)