summaryrefslogtreecommitdiff
path: root/reference_test.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.
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
2020-11-13Add ReferenceNormalizeName (#681)Segev Finer
2016-08-27Run the tests in parallelCarlos Martín Nieto
This saves about 1s, or 1/3 of the test runtime. The linking is still much slower, but this we can control.
2015-07-24Add ReferenceIsValidName()Calin Seciu
2015-07-24Add check if reference is a noteCalin Seciu
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-08Merge remote-tracking branch 'origin/master' into nextCarlos Martín Nieto
2015-05-30Fix test error messagestaylorchu
2015-04-24tests: always clean up temporary repository dirsPatrick Steinhardt
Some test repositories are not correctly removed after the tests did run. Fix by introducing a function that is to be used for cleaning up temporary test repositories.
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.
2014-05-25Give Object and Reference an Onwer accessorCarlos Martín Nieto
This reduces the need to carry around a pointer to the repository as well as the objects.
2014-05-04Fix typoCarlos Martín Nieto
2014-04-04Merge branch 'oid-parse-protection' into branch-iteratorJesse Ezell
2014-04-02make it possible to handle errorsJesse Ezell
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-19split out name iteratorJesse Ezell
2014-03-19remove Branch struct, unify reference iteratorsJesse Ezell
2014-02-26Add a few reference utility functionsCarlos Martín Nieto
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
2014-01-29update git2go to support latest libgit2 development commit (id: 66af84)Aidan Nulman
2013-09-17Merge pull request #36 from libgit2/ref-iterVicent Martí
reference: get references out of the iterator
2013-09-12Give each const group a typeCarlos Martín Nieto
This allows us to restrict which constants the compiler will allow through, and makes the sorting in the documentation better.
2013-09-12Camel-case constantsCarlos Martín Nieto
Make the names look more like what you'd expect from Go.
2013-08-09reference: get references out of the iteratorCarlos Martín Nieto
Allow getting references out of the iterator instead of just names.
2013-06-17Reference: adjust to iterator changesCarlos Martín Nieto
The Library's iterators now can return either the reference or the reference's name. As the name is what we're set up for, rename the functions appropriately so we compile against altest development.
2013-06-13Merge pull request #13 from libgit2/polymorphism-take-2Vicent Martí
My take on polymorphism
2013-05-23Implement a reference iteratorCarlos Martín Nieto
Wrap the reference iterators, and provide a Iter() function to get them through a channel.
2013-04-16Add @carlosmn's testsVicent Marti
2013-03-08Oid: make sure not to dereference a NULL git_oidCarlos Martín Nieto
Some calls like Reference.Target() can return NULL if the reference is symbolic. Make sure newOidFromC() can handle these situations.
2013-03-07Delete the whole test dirCarlos Martín Nieto
2013-03-07Add a test for referencesCarlos Martín Nieto