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.
1 file changed
tree: 74ea5cf0e87df1d29dd8a8bf26f3576bf9a9b0fa
  1. script/
  2. .travis.yml
  3. blob.go
  4. branch.go
  5. checkout.go
  6. clone.go
  7. clone_test.go
  8. commit.go
  9. config.go
  10. credentials.go
  11. git.go
  12. git_test.go
  13. index.go
  14. index_test.go
  15. LICENSE
  16. object.go
  17. object_test.go
  18. odb.go
  19. odb_test.go
  20. packbuilder.go
  21. push.go
  22. push_test.go
  23. README.md
  24. reference.go
  25. reference_test.go
  26. remote.go
  27. remote_test.go
  28. repository.go
  29. submodule.go
  30. tree.go
  31. walk.go
  32. 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)