Commit Graph

43 Commits

Author SHA1 Message Date
Carlos Martín Nieto
aa1ba5bfa5 Have geef_odb:exists take an oid properly 2013-03-31 21:29:25 +02:00
Carlos Martín Nieto
d546274f8c Add geef_repo:odb 2013-03-30 15:11:13 +01:00
Carlos Martín Nieto
125e132af9 Add geef_odb:write 2013-03-30 15:11:05 +01:00
Carlos Martín Nieto
5ee6b055e9 tree: don't use a record for tree entry
Return the four elements directly
2013-03-28 13:32:20 +01:00
Carlos Martín Nieto
7987f35e58 Add a way to get a blob's size and content 2013-03-02 14:34:16 +01:00
Carlos Martín Nieto
d0bdfecf4b Add a basic blob wrapper 2013-03-02 12:42:47 +01:00
Carlos Martín Nieto
9b2a053848 Add object id lookup 2013-03-02 03:27:40 +01:00
Carlos Martín Nieto
d62511515d Remove unused variable, remember to capitalise variables 2013-03-02 03:12:44 +01:00
Carlos Martín Nieto
361c9ddb27 Let geef_object:lookup also be an iolist 2013-03-02 03:10:42 +01:00
Carlos Martín Nieto
b5b68cce8b Allow getting a tree entry 2013-03-02 02:56:58 +01:00
Carlos Martín Nieto
1807ba4374 Don't shout every time the NIF is loaded 2013-03-01 19:59:00 +01:00
Carlos Martín Nieto
7471774558 Get rid of an unused var 2013-03-01 19:58:27 +01:00
Carlos Martín Nieto
2c7a984af0 Add a simple test in geef_oid 2013-03-01 01:54:07 +01:00
Carlos Martín Nieto
4c798629dd Export geef:commit_tree 2013-03-01 01:03:47 +01:00
Carlos Martín Nieto
b2e366027b Add geef_commit:tree() 2013-02-17 23:45:03 +01:00
Carlos Martín Nieto
6d34f99520 Add geef_commit:tree_id 2013-02-17 21:25:32 +01:00
Carlos Martín Nieto
d71c6ff702 Add a way to look up objects 2013-01-30 00:16:52 +01:00
Carlos Martín Nieto
ad567fbf41 erlang headers should be hrl 2013-01-29 01:46:11 +01:00
Carlos Martín Nieto
8a96f4732e Add the #oid{} record to differentiate from a formatted hash 2013-01-29 01:46:11 +01:00
Carlos Martín Nieto
5a58abc4a0 Let geef_ref:target/1 handle both oid and symrefs 2013-01-25 15:22:14 +01:00
Carlos Martín Nieto
78e0693b8a Add typespecs to the functions 2013-01-25 03:33:02 +01:00
Carlos Martín Nieto
3c6b1ddaf5 Use erlang:nif_error to make dialyzer happy
And mark some of the NIF functions
2013-01-25 03:06:29 +01:00
Carlos Martín Nieto
4658251ced Let rebar generate the app file 2013-01-25 00:12:26 +01:00
Carlos Martín Nieto
7d76f18a55 More complete ref bindings 2013-01-24 23:55:42 +01:00
Carlos Martín Nieto
468695adb5 reference_id -> reference_target 2013-01-24 23:36:17 +01:00
Carlos Martín Nieto
ba92ce777f Even more erlang namespacing 2013-01-23 17:07:22 +01:00
Carlos Martín Nieto
6dea8e6930 Make it more erlang-esque
pmods are going away, use prefixed namespaces.
2013-01-23 16:27:42 +01:00
Carlos Martín Nieto
7ac46fbf5e Add reference_type() 2013-01-23 06:16:49 +01:00
Carlos Martín Nieto
71eea735d2 Add oid_parse(Sha) 2013-01-22 15:49:12 +01:00
Carlos Martín Nieto
401573ea60 Add geef:oid_fmt(Oid) 2013-01-21 16:22:08 +01:00
Carlos Martín Nieto
880d7b76fb reference: add id() to get the sha 2013-01-21 15:28:43 +01:00
Carlos Martín Nieto
9e8052c6b0 repository: add reference_glob() 2013-01-21 13:14:13 +01:00
Carlos Martín Nieto
285368566f Variables start with uppercase in this language 2013-01-21 12:45:11 +01:00
Carlos Martín Nieto
345048301c Paremetrize reference 2013-01-21 12:22:41 +01:00
Carlos Martín Nieto
ff2b868526 Parametrize odb 2013-01-21 12:02:11 +01:00
Carlos Martín Nieto
1d2a016cd9 Add repository:bare() and :references() 2013-01-21 10:45:14 +01:00
Carlos Martín Nieto
2dcbb33b46 Update the bidindings
Make repository parametrized
2013-01-21 03:48:51 +01:00
Carlos Martín Nieto
69ddae5b54 Remove old object_exists 2012-08-14 11:43:40 +02:00
Carlos Martín Nieto
27e72e5173 Refactor the code into separate files
Separate repository/odb functions into their own file. Add odb_exists
to go through the repository's odb. Adjust the test script.
2012-08-14 02:39:41 +02:00
Carlos Martín Nieto
1bc316b6a5 Don't export the load function, it gets called automatically 2012-08-13 23:55:14 +02:00
Carlos Martín Nieto
9cbf4024a0 Add a few basic functions for the repository 2012-08-13 23:53:31 +02:00
Carlos Martín Nieto
23f6345043 Load the NIF automatically 2012-08-13 22:34:15 +02:00
Scott Chacon
c1ea72abae ported code to use rebar and R14B 2010-11-03 19:49:40 -07:00