summaryrefslogtreecommitdiff
path: root/repository.go
AgeCommit message (Collapse)Author
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
2015-01-07Add git note supportBen Burkert
2015-01-04Update to libgit2 masterCarlos Martín Nieto
This gets rid of the Push object. All network now goes through the Remote object.
2014-12-18Update libgit2David Calavera
Fix calls to C.git_treebuilder_create and C.git_treebuilder_write.
2014-12-06Add missing thread lockingCarlos Martín Nieto
2014-09-04Repository.CreateCommit: Only allocate CStr on non-empty refnameAlexander Surma
2014-09-01Repository.CreateCommit: Allow empty refname for non-update commitAlexander Surma
2014-08-22Extract data into a go struct.David Calavera
2014-06-11fix indentationFrank Benkstein
2014-06-09add support for annotated tagsFrank Benkstein