summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-22Remove Version from RevertOptionsRichard Burke
Version is defaulted to GIT_REVERT_OPTIONS_VERSION
2020-02-22Add revert functionalityRichard Burke
Closes #436
2020-02-22Free() the copies of repository.LookupXxx()lhchavez
`repository.LookupXxx()` allocate new go `Object`s that have a reference to a `C.git_object`. Those are then duplicated with `git_object_dup()`, so the original `Object`s linger unnecessarily until the Go GC kicks in. This change explicitly calls `Free()` on the originals to avoid unnecessary accumulation of garbage.
2020-02-22Update CI configurationlhchavez
This change: * Updates the GitHub actions so that they run different commands for the dynamic and static flavors of libgit2. * Updates the .travis.yml file so that it does roughly the same as the GitHub actions. * Adds the release-* branches to the CI configurations.
2020-02-20Uprev libgit2lhchavez
This uprevs libgit2 to the latest and greatest. Notably, * Fixes the interface of `git_mempack_reset`, since it now returns an `int` instead of being `void`. Fixes: #533
2020-02-12Merge pull request #520 from libgit2/actionslhchavez
Setup CI via Actions
2020-02-13Fix build for go 1.9lhchavez
This change makes the #includes between credentials.go and remote.go consistent to avoid a build error in go 1.9.
2020-02-13Merge remote-tracking branch 'origin/master' into actionslhchavez
2020-02-12Update .github/workflows/ci.ymllhchavez
2020-02-12Merge pull request #527 from dbolkensteyn/masterlhchavez
Fixes #513 - Segfault during tree walk
2020-02-12Merge pull request #523 from josharian/diff-stringerslhchavez
make Delta and DiffLineType stringers
2020-02-12Merge pull request #524 from josharian/doc-paramslhchavez
provide param names in DiffForEachFileCallback
2020-02-12Merge pull request #503 from jonEbird/static-build-script-cleanuplhchavez
script/build-libgit2-static.sh: correctly set ROOT
2020-02-12Merge pull request #515 from Nivl/patch-1Carlos Martín Nieto
fix invalid guard forcing v27 instead of v28
2019-12-10Merge pull request #528 from libgit2/cmn/bump-libgit2Carlos Martín Nieto
Bump libgit2 to 6777db8e83
2019-12-10credentials: unconfuse Go about the typeCarlos Martín Nieto
For some reason cgo thinks the `credtype` field does not exist in `git_cred` so let's put it into the C code.
2019-12-10travis: update versions of Go to be testedCarlos Martín Nieto
2019-12-10Adjust to libgit2 changesCarlos Martín Nieto
2019-12-10Makefile: disable test cachingCarlos Martín Nieto
This does not work well when you're changing C stuff underneath.
2019-12-10Bump libgit2 to 6777db8e83Carlos Martín Nieto
2019-11-17Similar to #513 Fix potential segfault on Tag objectsDinesh Bolkensteyn
2019-11-17Fixes #513 - Segfault during tree walkDinesh Bolkensteyn
2019-08-27provide param names in DiffForEachFileCallbackJosh Bleecher Snyder
Without a parameter name, the float64 param is pretty inscrutable.
2019-08-27make Delta and DiffLineType stringersJosh Bleecher Snyder
2019-08-15submoduleCarlos Martín Nieto
2019-08-15Setup CI via ActionsCarlos Martín Nieto
2019-08-13Merge pull request #519 from libgit2/cmn/update-libgit2Carlos Martín Nieto
Update vendored libgit2 to 08cfa43d0e1a921
2019-08-13script: tell libgit2 to use the builtin regex backendCarlos Martín Nieto
2019-08-13Update vendored libgit2 to 08cfa43d0e1a921Carlos Martín Nieto
2019-06-19fix invalid guard forcing v27 instead of v28Melvin
2019-06-18Merge pull request #506 from takuji/git_commit_message_encodingCarlos Martín Nieto
Add git_commit_message_encoding support
2019-06-18Merge pull request #512 from codeocean/diff-to-bufCarlos Martín Nieto
Add Diff.ToBuf wrapping git_diff_to_buf
2019-05-29Add Diff.ToBuf wrapping git_diff_to_bufSegev Finer
2019-05-10Add Commit.MessageEncoding() method.Takuji Shimokawa
2019-05-07script/build-libgit2-static.sh: correctly set ROOTJon Miller
The ROOT variable is not being set correctly. Need to use dirname against $0 as well as only go up one directory instead of two.
2019-02-15Merge pull request #479 from lhchavez/uprev-libgit2Carlos Martín Nieto
Uprev vendored libgit2 to v.0.28
2019-02-11Uprev vendored libgit2 to v0.28lhchavez
New version is here!
2019-01-15Merge pull request #448 from lhchavez/mempackCarlos Martín Nieto
Add support for mempack
2019-01-15Keep odb alive when adding mempackCarlos Martín Nieto
2019-01-08Merge pull request #466 from lhchavez/repository-create_commit_from_idsCarlos Martín Nieto
Add support for CreateCommitFromIds
2019-01-08Merge remote-tracking branch 'upstream/master' into ↵lhchavez
repository-create_commit_from_ids
2019-01-08Keeping the tree alivelhchavez
2019-01-08Add a test and some comments as to the ugly pointer arithmeticlhchavez
2019-01-08Addressed review feedback and added a testlhchavez
2019-01-08Merge remote-tracking branch 'upstream/master' into mempacklhchavez
2019-01-07Merge pull request #477 from lhchavez/patch-1Carlos Martín Nieto
Add support for Go 1.11 modules
2019-01-07Merge pull request #475 from lhchavez/self-contained-buildCarlos Martín Nieto
Improve the static build script
2019-01-07Merge pull request #476 from lhchavez/clean-up-leaked-dirCarlos Martín Nieto
Clean up one leaked temporary directory
2019-01-06Add support for Go 1.11 moduleslhchavez
This change adds a `go.mod` file. An empty file is sufficient since this project has no external dependencies. For people that want to use the static version of libgit2, this module can be vendored and the following can be added to their `go.mod` file: replace github.com/libgit2/git2go => ./vendor/github.com/libgit2/git2go
2019-01-05Clean up one leaked temporary directorylhchavez
A `defer cleanupTestRepo()` was missing.