| Age | Commit message (Collapse) | Author |
|
This change adds the Shutdown() method, so that the library can be
cleanly shut down. This helps significanly reduce the amount of noise in
the leak detector.
|
|
This change improves the documentation surrounding libgit2 static builds
and modules.
Fixes: #618
|
|
This change removes the `LIB_INSTALL_DIR` and `INCLUDE_INSTALL_DIR` from
the `script/build-libgit2.sh` script, since they are now unneeded and
just print a warning if they are used.
|
|
This change adds two missing merge flags MergeTreeSkipREUC and MergeTreeNoRecursive.
|
|
Adds a wrapper for git_message_trailers which returns a slice of trailer
structs.
|
|
It is not Go idiomatic to put Get into the getter's name
|
|
It is not Go idiomatic to put Get into the getter's name.
https: //golang.org/doc/effective_go.html#Getters
Co-Authored-By: lhchavez <[email protected]>
|
|
|
|
|
|
|
|
|
|
This uprevs libgit2 to the latest and greatest.
|
|
This change removes the Go finalizer when passing ownership to libgit2.
Fixes: #553
|
|
|
|
|
|
|
|
Clarifying the versions since we're using Go 1.11 module version rules now.
|
|
This is the second take on trying to tag the current release with a Go
version.
|
|
This uprevs libgit2 to the latest and greatest.
|
|
Resolves issue #541 - typo in error code 'ErrAmbigious'
|
|
I've added an additional constant with the correct spelling. I did this
rather than removing the existing constant to avoid breaking existing
code with the misspelled name.
|
|
This change makes the underlying type of DiffFlag be uint32 instead of
int. That makes it possible to build on 32-bit systems.
Fixes: #487
|
|
This change adds support for odb.NewOdbBackendLoose(). This, together
with the git.Packbuilder, can do what Mempack does with a lot less
memory.
|
|
This allows for implementations of git servers written in Go.
|
|
This change adds Cred.Free() and finalizers to prevent memory leaks. It
also makes the interface for Cred more idiomatic and return actual
errors intead of ints.
|
|
cherrypick: wrap git_cherrypick_commit
|
|
|
|
|
|
merge: add two missing AnnotatedCommit methods
|
|
|
|
|
|
Add binding for `git_index_add_frombuffer`
|
|
|
|
|
|
Version is defaulted to GIT_REVERT_OPTIONS_VERSION
|
|
Closes #436
|
|
`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.
|
|
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.
|
|
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
|
|
Setup CI via Actions
|
|
This change makes the #includes between credentials.go and remote.go
consistent to avoid a build error in go 1.9.
|
|
|
|
|
|
Fixes #513 - Segfault during tree walk
|
|
make Delta and DiffLineType stringers
|
|
provide param names in DiffForEachFileCallback
|
|
script/build-libgit2-static.sh: correctly set ROOT
|
|
fix invalid guard forcing v27 instead of v28
|
|
Bump libgit2 to 6777db8e83
|
|
For some reason cgo thinks the `credtype` field does not exist in `git_cred` so
let's put it into the C code.
|