lhchavez
5def02a589
The big Callback type adjustment of 2020
...
This change makes all callbacks that can fail return an `error`. This
makes things a lot more idiomatic.
2021-09-05 18:52:01 -07:00
lhchavez
c20008416a
Merge remote-tracking branch 'upstream/master' into git_index_add_frombuffer
2020-02-23 13:53:17 +00:00
Carlos Martín Nieto
f969cc900d
Bump vendored libgit2 to fba70a9d5f
...
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.
2019-01-04 13:18:54 +00:00
Vadzim Ramanenka
79fe156d30
Add binding for `git_index_add_frombuffer`
2017-07-17 17:05:03 +03:00
Carlos Martín Nieto
42a90d4e68
Merge pull request #351 from ezwiebel/index-remove-directory
...
Implement git_index_remove_directory in index wrapper
2016-10-31 20:03:05 +01:00
ezwiebel
c18c8693fe
Implement git_index_remove_directory in index wrapper
2016-10-20 15:49:24 +11:00
Carlos Martín Nieto
e55c00eca7
Run the tests in parallel
...
This saves about 1s, or 1/3 of the test runtime. The linking is still
much slower, but this we can control.
2016-08-27 19:21:05 +02:00
Carlos Martín Nieto
b7159b0cd4
Move from an Object interface to a type
...
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-08-04 14:47:10 +02:00
taylorchu
53c158fbd7
Fix test error messages
2015-05-30 22:27:08 +02:00
Carlos Martín Nieto
72c19f73c9
Index: Add Path() accessor
2015-05-19 15:05:00 +02:00
Carlos Martín Nieto
d7a0495000
Index: Add OpenIndex
...
This lets you persist an index at an arbitrary location.
2015-05-19 14:56:01 +02:00
Carlos Martín Nieto
a8ad0d2040
Index: Add ReadTree()
2015-05-19 14:49:05 +02:00
Patrick Steinhardt
e300945a3d
tests: always clean up temporary repository dirs
...
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-04-24 13:01:51 +02:00
Lucas Clemente
9d37f81764
implemented Index.AddAll, Index.RemoveAll, Index.UpdateAll
2014-10-24 21:55:08 +02:00
Carlos Martín Nieto
f953d4e5c7
Index: add functions to handle the data structure
...
Index is not just the index file
2014-05-25 18:12:50 +02:00
Jesse Ezell
1f3f8adda8
Add index WriteTreeTo + test
2014-03-20 20:49:05 -07:00
Vicent Marti
7292cafac2
Add @carlosmn's tests
2013-04-16 23:18:35 +02:00
Carlos Martín Nieto
d5a5467738
Delete the whole test dir
2013-03-07 21:01:22 +01:00
Carlos Martín Nieto
1a79563794
Factor out creating the test repo
2013-03-07 21:01:21 +01:00
mrb
ac17e28633
Fixed renamed func in index_test
2013-03-06 13:06:00 -05:00
Carlos Martín Nieto
23ba0f1e6d
Test the index code slightly
2013-03-06 13:39:53 +01:00