summaryrefslogtreecommitdiff
path: root/repository.go
AgeCommit message (Collapse)Author
2021-09-05Add support for custom smart transports (#806)lhchavez
This change adds support for git smart transports. This will be then used to implement http, https, and ssh transports that don't rely on the libgit2 library.
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.
2021-04-03Git repository item path (#757)Vladimir Buzuev
add wrapper for `git_repository_item_path`
2021-02-03Implement git_repository_set_config (#735)Byoungchan Lee
Closes #732
2021-02-02Support git_repository_message, git_repository_message_remove (#734)Byoungchan Lee
Closes #646
2020-12-10Ensure that no pointer handles leak during the test (#712)lhchavez
This change makes sure that pointer handles are correctly cleaned up during tests.
2020-10-22repository: Implement wrappers for `git_object_lookup_prefix` (#658)Patrick Steinhardt
While we already have wrappers for `git_object_lookup`, there are none yet for the prefixed variant where only the first n bytes of the OID are used for the lookup. This commit adds them.
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.
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-05Use git_object_t instead of deprecated git_otypeCarlos Martín Nieto
2018-11-15Add support for CreateCommitFromIdslhchavez
This change adds support for CreateCommitFromIds from libgit2.
2017-07-11fixed typosreujab
2017-07-08Third round of keep-alive aditionsCarlos Martín Nieto
2017-07-08Second round of keep-alivesCarlos Martín Nieto
2017-07-08First round of mass keep-alive additionsCarlos Martín Nieto
2017-03-07Add new repository open flagsM. Adam Kendall
2016-08-27Merge remote-tracking branch 'upstream/master' into nextCarlos Martín Nieto
2016-05-29Tag RemoveMirko Nosenzo
Added support for removal of a Tag
2016-03-29Add Repository.IsShallowHans Rødtang
2016-03-29Add Repository.IsEmptyHans Rødtang
2016-03-29Add Repository.IsHeadUnbornHans Rødtang
2016-02-20Merge branch 'next' into stash-supportCalin Seciu
2016-02-15Merge remote-tracking branch 'upstream/master' into nextCarlos Martín Nieto
2016-01-15Add missing RepositoryOpenExtended argumentsMichael Gehring
Fixes #277
2015-10-13Expose AddGitIgnoreRules and ClearGitIgnoreRules funcsJose Alvarez
2015-09-21Add stash supportCalin Seciu
2015-08-31Run go fmtCarlos Martín Nieto
As it seems to be something that many people can't get over, reformat all the files; as we're breaking things, whoever depended on 'next' will have to take many changes into account anyway, so let's include this to reduce the noise of incoming patches.
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-07-31Move CreateTag to the tags collectionCarlos Martín Nieto
2015-07-31Add TagsCollectionCalin Seciu
2015-07-01Merge remote-tracking branch 'upstream/master' into nextCarlos Martín Nieto
2015-07-01Adjust styleCarlos Martín Nieto
2015-07-01Merge commit 'refs/pull/198/head' of github.com:libgit2/git2goCarlos Martín Nieto
2015-07-01Merge commit 'refs/pull/174/head' of github.com:libgit2/git2goCarlos Martín Nieto
2015-06-30Repository: move to use an actual constructorCarlos Martín Nieto
This should further reduce the changes of the creation of the object going badly.
2015-06-28Create a NotesCollection for managing notesCarlos Martín Nieto
As with the others, move these methods into their own namespace.
2015-06-28Create a ReferenceCollection for managing referencesCarlos Martín Nieto
As with the other commits, this clears up the clutter in naming and around the Repository's API.
2015-06-28Create a SubmoduleCollection for managing submodulesCarlos Martín Nieto
Similarly to RemoteCollection, this allows us to namespace the submodule operations much more concisely and removes API on the Repository.
2015-06-28Create a RemoteCollection for managing remotesCarlos Martín Nieto
Instead of making the 'Remote' part of the function calls, create a collection object which serves to namespace the operations for the remotes.
2015-04-30Add method to check if repo is detachedFernando Oliveira
2015-04-18Update to libgit2 4c02d3937Carlos Martín Nieto
2015-03-15Update to libgit2 d675982a153Carlos Martín Nieto
There's been some changes to the checkout strategy, especially the SAFE_CREATE mode, which is now the RECREATE_MISSING flag, though that shouldn't be necessary to use in the general case. The largest changes come from the removal of the signture from ref-modifying functions/methods and the removal of the reflog string in all but those directly related to moving references.
2015-03-04Default signatureMark Probst
2015-03-04State cleanupMark Probst
2015-03-04Repository stateMark Probst
2015-02-13use git_signature_freeMatthew Donoughe