Aidan Nulman
d9f4adff6c
Merge branch 'master' into custom_odb
...
Conflicts:
odb.go
wrapper.c
2014-04-03 16:41:43 -04:00
Aidan Nulman
b5e60dc106
explicit returns
2014-04-03 16:39:21 -04:00
Carlos Martín Nieto
00ea11691b
Convert the rest of the errors
2014-02-26 16:14:31 +01:00
Jesper Hansen
499f52a354
Added git error code to the error object.
2014-02-26 16:10:00 +01:00
Aidan Nulman
2656a72e82
Merge branch 'master' into custom_odb
...
Conflicts:
git.go
reference.go
repository.go
submodule.go
2014-02-24 03:05:44 -05:00
Aidan Nulman
1c23e8ece3
add OdbBackend.Free() and the C it wraps; go fmt odb.go
2014-01-29 18:55:17 -05:00
Aidan Nulman
f610cf25d7
Merge branch 'master' into custom_odb
2014-01-28 22:49:55 -05:00
Claudiu-Vlad Ursache
bf209ca2ba
Remove unnecessary cast.
2014-01-26 12:36:05 +01:00
Claudiu-Vlad Ursache
4ce2eb713b
Add Odb hash function.
2014-01-25 22:18:32 +01:00
Aidan Nulman
e686586149
remove unnecessary comment
2013-12-20 14:26:00 -05:00
Aidan Nulman
59c7bd5ce4
Add OdbBackend constructor
2013-12-20 14:11:24 -05:00
Aidan Nulman
507a204249
Rename constructor functions to New...
2013-12-19 17:24:44 -05:00
Aidan Nulman
19b241bd55
Refactor InitRepositoryWCustomOdbBackend() into component functions
2013-12-19 00:33:23 -05:00
Aidan Nulman
dfe6d1ab7e
Stop assuming ODB backend includes wrapping routine; wrap in git2go instead
2013-12-18 17:25:54 -05:00
Carlos Martín Nieto
a40bdfd420
Lock the OS thread when acessing errors
...
The library stores error information in thread-local storage, which
means we need to make sure that the Go runtime doesn't switch OS
threads between the time we call a function and th time we attempt to
retrieve the error information.
2013-12-18 16:18:32 +01:00
Carlos Martín Nieto
a5ad8de506
Don't repeat the pkg-config line
...
This is only needed once per package. Having it on every file makes the
build system ask about it n times, which is silly.
2013-11-14 00:23:04 +01:00
Vicent Martí
da5033fb98
Merge pull request #38 from libgit2/odb-stream
...
Wrap the odb streams
2013-09-17 08:03:34 -07:00
Carlos Martín Nieto
008e1efb35
Object types are constants
...
Define the object type values as constants
2013-09-11 23:01:27 +02:00
Carlos Martín Nieto
621397026c
Wrap the odb streams
...
The interface to these streams should be what you expect from Go, and
both have Write and Close functions so they implement
Reader/ReadCloser and Write/WriteCloser respectively.
2013-09-11 19:25:40 +02:00
Vicent Martí
62f65d071d
Merge pull request #13 from libgit2/polymorphism-take-2
...
My take on polymorphism
2013-06-13 10:15:36 -07:00
Axel Wagner
3a0abcc2e4
Implement git_odb_foreach
2013-05-21 21:37:08 +02:00
Vicent Marti
d190d8a6b3
Take 2 on polymorphism
2013-04-16 23:04:35 +02:00
Vicent Marti
3ca8077334
Properly wrap ODB objects
2013-03-06 17:15:28 +01:00
Carlos Martín Nieto
d43561fbf7
Free Git objects via finalizers or manually
...
Provide a manual way of freeing objects, but set finalizers for them
in case the user does not want to worry about memory management, which
would be useful for commits or trees, which sare typically small.
When the objects are freed manually, the finalizer is unset to avoid
double-freeing, mimicking what the go runtime does.
2013-03-06 01:47:53 +01:00
Vicent Marti
b1d50b70ea
Initial commit
2013-03-05 20:53:04 +01:00