commit | a333fd9a49b14bd329ee02d9bdf6968ba3847ffd | [log] [tgz] |
---|---|---|
author | Carlos Martín Nieto <cmn@dwim.me> | Fri Mar 21 07:42:36 2014 +0100 |
committer | Carlos Martín Nieto <cmn@dwim.me> | Fri Mar 21 07:42:36 2014 +0100 |
tree | 74ea5cf0e87df1d29dd8a8bf26f3576bf9a9b0fa | |
parent | 574f0dd12da2eae6f26ae35f197b2ec7a9328249 [diff] |
Oid: avoid unnecessary copy Going through GoByte() means we allocate and copy an extra slice that we just use in order to call copy(). Use memcpy() instead to copy directly from the git_oid to the Oid.
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!
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
.
M to the I to the T. See the LICENSE file if you've never seen a MIT license before.