Commit Graph

208 Commits

Author SHA1 Message Date
Axel Wagner 3a0abcc2e4 Implement git_odb_foreach 2013-05-21 21:37:08 +02:00
Carlos Martín Nieto d824ea415d Catch nil error instances
Unfortunately libgit2 sometimes returns an error without setting an
error message. Provide an alternative message instead of trying to
dereference nil.
2013-05-21 11:51:31 +02:00
Vicent Martí 4e0a28b064 Merge pull request #23 from Merovius/discover
Use cbool-helper in Discover()
2013-05-16 17:43:26 -07:00
Vicent Martí b1c3de066f Merge pull request #19 from Merovius/discover
Implement git_repository_discover
2013-05-16 17:41:34 -07:00
Axel Wagner 420cf7f0a6 Use cbool-helper in Discover() 2013-05-17 01:02:33 +02:00
Vicent Martí 5766c4accf Merge pull request #18 from Merovius/objecttype
Use ObjectType in TreeEntry
2013-05-16 14:11:39 -07:00
Vicent Martí a1743f75b2 Merge pull request #21 from Merovius/packbuilder
Implement Packbuilder-Support
2013-05-16 14:11:10 -07:00
Axel Wagner 3a1bbbdf9d Correct some errors from 1da989e 2013-05-16 16:53:21 +02:00
Axel Wagner 1da989e28b Add Write(w io.Writer) to packbuilder
This wraps (*packbuilder).ForEach(), making it possible to write the
pack easiliy to a tcp-connection, a HTTP-Body or the like.
2013-05-16 14:02:22 +02:00
Axel Wagner 140f362428 Add support for git_packbuilder 2013-05-16 13:56:07 +02:00
Axel Wagner e1238b5994 Implement git_repository_discover 2013-05-14 21:35:58 +02:00
Vicent Martí c9adbf05d7 Merge pull request #17 from Merovius/oid
Implement most of the oid_-functions as Methods
2013-04-26 14:54:14 -07:00
Axel Wagner 28b5284389 Use ObjectType in TreeEntry 2013-04-26 23:28:32 +02:00
Axel Wagner f1848e48b8 Implement most of the oid_-functions as Methods 2013-04-26 21:12:27 +02:00
Vicent Martí 27e7ccee5a Merge pull request #16 from Merovius/pointerrecv
Give gitObject.Free a pointer-receiver
2013-04-25 17:41:18 -07:00
Vicent Martí eea1a15027 Merge pull request #15 from Merovius/objtype
Add String() Method to ObjectType
2013-04-25 17:40:39 -07:00
Vicent Martí 9822cc944e Merge pull request #14 from Merovius/isbare
Wrap git_repository_is_bare
2013-04-25 17:39:57 -07:00
Axel Wagner 289d84e1f7 Give gitObject.Free a pointer-receiver
This is needed to get runtime.SetFinalizer to work, which
expects a pointer-receiver. Without it the runtime will crash, when it
tries to garbage-collect an object.
2013-04-26 02:32:41 +02:00
Axel Wagner ac6ea9aa75 Add String() Method to ObjectType 2013-04-26 02:06:47 +02:00
Axel Wagner a6429763a7 Wrap git_repository_is_bare 2013-04-26 00:10:28 +02:00
Vicent Marti 2bf17ba2f1 Ok, now with shared base object 2013-04-18 00:54:46 +02:00
Vicent Marti 7292cafac2 Add @carlosmn's tests 2013-04-16 23:18:35 +02:00
Vicent Marti d190d8a6b3 Take 2 on polymorphism 2013-04-16 23:04:35 +02:00
Vicent Martí c7286515b8 Merge pull request #12 from Merovius/checkout
Checkout
2013-04-12 13:41:32 -07:00
Axel Wagner c1634c975e Implement SetWorkdir 2013-03-19 23:07:10 +01:00
Axel Wagner b27c14b620 Implement rudimentary checkout operations 2013-03-19 23:07:05 +01:00
Vicent Martí 3066c13c63 Merge pull request #10 from carlosmn/oid-id
TreeEntry: use Id instead of Oid
2013-03-08 14:08:43 -08:00
Carlos Martín Nieto c854239784 TreeEntry: use Id instead of Oid
Name it like The Library and the rest of the bindings.
2013-03-08 21:26:19 +01:00
Vicent Martí 78d105f862 Merge pull request #9 from carlosmn/nil-oid
Oid: make sure not to dereference a NULL git_oid
2013-03-08 07:09:44 -08:00
Carlos Martín Nieto 62a16395b1 Oid: make sure not to dereference a NULL git_oid
Some calls like Reference.Target() can return NULL if the reference is
symbolic. Make sure newOidFromC() can handle these situations.
2013-03-08 16:03:49 +01:00
Vicent Martí b57c792bf3 Merge pull request #8 from carlosmn/refs
Immutable refs
2013-03-07 12:03:14 -08:00
Carlos Martín Nieto d5a5467738 Delete the whole test dir 2013-03-07 21:01:22 +01:00
Carlos Martín Nieto ddbe13dab4 Add a test for references 2013-03-07 21:01:21 +01:00
Carlos Martín Nieto 1a79563794 Factor out creating the test repo 2013-03-07 21:01:21 +01:00
Carlos Martín Nieto 0b2f16665d Wrap immutable refs 2013-03-07 21:01:21 +01:00
Vicent Martí bc3f9e02ee Merge pull request #7 from carlosmn/blob
Add a couple of missing methods around Blob
2013-03-06 15:01:42 -08:00
Carlos Martín Nieto 5c09440f42 Add a couple of missing methods around Blob 2013-03-06 23:59:33 +01:00
Vicent Martí 677378bc34 Merge pull request #6 from carlosmn/signature
Use time.Time in the Signature struct
2013-03-06 11:40:16 -08:00
Carlos Martín Nieto 32a62bb01a Use time.Time in the Signature struct 2013-03-06 20:28:39 +01:00
Vicent Martí 4b40227697 Merge pull request #5 from mrb/test_fix
Fixed renamed func in index_test
2013-03-06 10:28:11 -08:00
mrb ac17e28633 Fixed renamed func in index_test 2013-03-06 13:06:00 -05:00
Vicent Marti e620ded393 Sane names yo 2013-03-06 17:18:25 +01:00
Vicent Marti 60eac43943 Repository.Path 2013-03-06 17:17:27 +01:00
Vicent Marti 3ca8077334 Properly wrap ODB objects 2013-03-06 17:15:28 +01:00
Vicent Marti 4819b36b67 Update README 2013-03-06 17:06:01 +01:00
Vicent Marti 20e2528478 Repository.CreateCommit 2013-03-06 16:59:45 +01:00
Vicent Martí bdfd8736bc Merge pull request #4 from carlosmn/index
Wrap the index and test it a bit
2013-03-06 07:48:16 -08:00
Carlos Martín Nieto 23ba0f1e6d Test the index code slightly 2013-03-06 13:39:53 +01:00
Carlos Martín Nieto 33f4594e9c Wrap git_index 2013-03-06 13:10:53 +01:00
Vicent Martí 9b6d570748 Merge pull request #3 from carlosmn/finalizers
Free Git objects via finalizers or manually
2013-03-05 16:59:40 -08:00