summaryrefslogtreecommitdiff
path: root/branch.go
AgeCommit message (Collapse)Author
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.
2020-12-05Mark some symbols to be deprecated #minor (#698)lhchavez
This change introduces the file deprecated.go, which contains any constants, functions, and types that are slated to be deprecated in the next major release. These symbols are deprecated because they refer to old spellings in pre-1.0 libgit2. This also makes the build be done with the `-DDEPRECATE_HARD` flag to avoid regressions. This, together with [gorelease](https://godoc.org/golang.org/x/exp/cmd/gorelease)[1] should make releases safer going forward. 1: More information about how that works at https://go.googlesource.com/exp/+/refs/heads/master/apidiff/README.md
2018-08-08Remove uses of deprecated git_buf_freeCarlos Martín Nieto
2017-07-08First round of mass keep-alive additionsCarlos Martín Nieto
2016-09-05Add check for ErrIterOver in BranchIterator.ForEachMichael Daffin
The BranchIterator.ForEach currently returns the ErrIterOver error if no error had occured during the iteration. This leads to a rather unhelpful blank error message with the error code -31 when iterating over the branches. This commit adds a check for ErrIterOver at the end of the ForEach method so that the client code only has to worry about checking for nil as apose to checking for the ErrIterOver error.
2016-05-29BranchAll maps GIT_BRANCH_ALLMirko Nosenzo
Added support to All Branch Iteration and Lookup
2015-08-31Merge branch 'next'Carlos Martín Nieto
2015-08-12branch: fix memory leaks related to CStringsPatrick Steinhardt
2015-06-28Merge remote-tracking branch 'upstream/master' into nextCarlos Martín Nieto
Conflicts: branch.go
2015-06-08Free reference resource allocated by libgit2 during go garbage collectingshinningstar
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-02-19Add BranchIterator#ForEach.David Calavera
This abstracts the branch iteration from the user.
2014-12-11Remove useless includesCarlos Martín Nieto
2014-10-28Make the constants have typesCarlos Martín Nieto
While Go will assign the correct type to a const block when it auto-creates the values, assigning makes the const be typeless and will only gain it in each particular use. Make each constant in the blocks have an assigned type.
2014-06-03Switch default to static linkingCarlos Martín Nieto
Build in libgit2 statically into git2go by default, removing the need for the right version to be available as a shared object. We do still need to link dynamically against OpenSSL and LibSSH2.
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-04merge with improved error handling logicJesse Ezell
2014-04-04Merge remote-tracking branch 'libgit/master' into branch-iteratorJesse Ezell
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-03-20remove channel based iteration for branch / ref. Add ReferenceNameIterator. ↵Jesse Ezell
All iterators use Next(). Remove interfaces.
2014-03-19various improvements to interfaceJesse Ezell
2014-03-19remove Branch struct, unify reference iteratorsJesse Ezell
2014-03-12add branch iterator / remove useless repo from reference iteratorJesse Ezell
2014-02-28move return outside of switch for go 1.0 / travisJesse Ezell
2014-02-28fix msg handling to treat empty str as nilJesse Ezell
2014-02-28Remove unused constsJesse Ezell
2014-02-28fix bad git_buf handlingJesse Ezell
2014-02-26LastError -> MakeGitErrorJesse Ezell
2014-02-26Add thread lockingJesse Ezell
2014-02-26cleanup add-branchJesse Ezell
2013-10-30branch: Deleted BranchForeachJohann Weging
2013-10-10branch:BranchForeach: Correct handling of the ListFlagsJohann Weging
2013-10-08branch: Renamed BranchLookup to LookupBrnachJohann Weging
2013-10-08branch: Renamed BranchCreate to CreateBranchJohann Weging
2013-10-08branch: Variable names don't repeat its type name any longerJohann Weging
2013-10-08branch: Changed BranchT to BranchTypeJohann Weging
2013-10-08branch: Implemented branch functions.Johann Weging