summaryrefslogtreecommitdiff
path: root/index_test.go
AgeCommit message (Collapse)Author
2021-09-05The big Callback type adjustment of 2020lhchavez
This change makes all callbacks that can fail return an `error`. This makes things a lot more idiomatic.
2020-02-23Merge remote-tracking branch 'upstream/master' into git_index_add_frombufferlhchavez
2019-01-04Bump vendored libgit2 to fba70a9d5fCarlos Martín Nieto
This includes updating the `Index.WriteTreeTo` test as it was abusing an oversight of the object creation safety checks and creating a tree referencing a non-existent blob. Instead we update it to the primary purpose of this method which is to write into a repository from an unattached index.
2017-07-17Add binding for `git_index_add_frombuffer`Vadzim Ramanenka
2016-10-31Merge pull request #351 from ezwiebel/index-remove-directoryCarlos Martín Nieto
Implement git_index_remove_directory in index wrapper
2016-10-20Implement git_index_remove_directory in index wrapperezwiebel
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-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-05-30Fix test error messagestaylorchu
2015-05-19Index: Add Path() accessorCarlos Martín Nieto
2015-05-19Index: Add OpenIndexCarlos Martín Nieto
This lets you persist an index at an arbitrary location.
2015-05-19Index: Add ReadTree()Carlos Martín Nieto
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.
2014-10-24implemented Index.AddAll, Index.RemoveAll, Index.UpdateAllLucas Clemente
2014-05-25Index: add functions to handle the data structureCarlos Martín Nieto
Index is not just the index file
2014-03-20Add index WriteTreeTo + testJesse Ezell
2013-04-16Add @carlosmn's testsVicent Marti
2013-03-07Delete the whole test dirCarlos Martín Nieto
2013-03-07Factor out creating the test repoCarlos Martín Nieto
2013-03-06Fixed renamed func in index_testmrb
2013-03-06Test the index code slightlyCarlos Martín Nieto