summaryrefslogtreecommitdiff
path: root/commit.go
AgeCommit message (Collapse)Author
2021-09-05libgit2 v1.2.0 #majorlhchavez
This commit introduces libgit2 v1.2.0 to git2go, which brings a large number of [bugfixes and features](https://github.com/libgit2/libgit2/releases/tag/v1.2.0). This also marks the start of the v32 release.
2021-09-05Make all non-user-creatable structures non-comparable (#802)lhchavez
This change makes all non-user-creatable structures non-comparable. This makes it easier to add changes later that don't introduce breaking changes from the go compatibility guarantees perspective. This, of course, implies that this change _is_ a breaking change, but since these structures are not intended to be created by users (or de-referenced), it should be okay.
2021-09-04Add `CreateCommitWithSignature` (#782)lhchavez
This change adds the wrapper for `git_commit_create_with_signature`.
2021-09-04Add `Repository.CreateCommitBuffer` (#781)lhchavez
This commit adds the Go binding for `git_commit_create_buffer`. This will be used to support the 1.2.0 commit create callback.
2020-08-18Add support for creating signed commits and signing commits during a rebase ↵michael boulton
(#626)
2019-05-10Add Commit.MessageEncoding() method.Takuji Shimokawa
2018-08-08Remove uses of deprecated git_buf_freeCarlos Martín Nieto
2017-07-08Add Objecer interfaceCarlos Martín Nieto
We do want to be able to accept generic objects in functions. Add this interface so we can accept that instead of specific object types.
2017-07-08First round of mass keep-alive additionsCarlos Martín Nieto
2017-07-07commit: add keep-alives for those that need conversion to pointer receiversCarlos Martín Nieto
We can't work on the copies here, we need to have pointer receivers so we know we're keeping alive the object whose finalizer would free the unmanaged memory we're working with.
2017-07-07commit: add thread locking to signature extractionCarlos Martín Nieto
2017-07-06Added Commit.ExtractSignature to wrap git_commit_extract_signatureKatolaZ
2016-09-09Add method to fetch raw commit messageKarsten Dambekalns
The existing `Commit.Message()` returns the trimmed commit message. In some cases it is important to retrieve the exact commit message, even if it contains surrounding newlines. This adds a new `Commit.RawMessage()` to be able to do that.
2015-08-04Move from an Object interface to a typeCarlos Martín Nieto
An Object should be about representing a libgit2 object rather than showing which methods it should support. Change any return of Object to *Object and provide methods to convert between this and the particular type.
2015-03-23Add Commit.AmendMark Probst
2015-03-04Add commit summary getterMark Probst
2015-03-04Default signatureMark Probst
2014-12-11Remove useless includesCarlos Martín Nieto
2014-05-26Keep a pointer to the repository in the objects and referencesCarlos Martín Nieto
Otherwise, the garbage collector might decide it's a good idea to throw away the repository instance while the C object still has a pointer to it. Hilarity ensues.
2014-04-01Adjust to Go tip changesCarlos Martín Nieto
It does not like breaking aliasing rules, so let's keep a casted pointer for when libgit2 wants that.
2014-02-26Added git error code to the error object.Jesper Hansen
2014-02-23Merge commit 'refs/pull/53/head' of github.com:libgit2/git2goCarlos Martín Nieto
On top: fix git_buf handling and rename signature This fixes #57, #54. Conflicts: git.go reference.go repository.go submodule.go
2013-12-18Lock the OS thread when acessing errorsCarlos Martín Nieto
The library stores error information in thread-local storage, which means we need to make sure that the Go runtime doesn't switch OS threads between the time we call a function and th time we attempt to retrieve the error information.
2013-11-14Fix memleak for Config and parent commit objectsArtiom Di
2013-06-13Merge pull request #13 from libgit2/polymorphism-take-2Vicent Martí
My take on polymorphism
2013-05-21Implement Parent()-functions for CommitsAxel Wagner
2013-04-18Ok, now with shared base objectVicent Marti
2013-04-16Take 2 on polymorphismVicent Marti
2013-03-06Use time.Time in the Signature structCarlos Martín Nieto
2013-03-06Repository.CreateCommitVicent Marti
2013-03-06Free Git objects via finalizers or manuallyCarlos Martín Nieto
Provide a manual way of freeing objects, but set finalizers for them in case the user does not want to worry about memory management, which would be useful for commits or trees, which sare typically small. When the objects are freed manually, the finalizer is unset to avoid double-freeing, mimicking what the go runtime does.
2013-03-05Introduce SignatureCarlos Martín Nieto
It brings the data into go-land so we don't have to worry about the commit being there. It stores the data we get from git and provides a Time() function to get a time.Time struct.
2013-03-05Initial commitVicent Marti