Commit Graph

34 Commits

Author SHA1 Message Date
Carlos Martín Nieto
6c272e2c30 index: write out all fields to disc
There is still now way to access what the flags mean, and the times
need to be in pure timestamp form, rather than erlang's.

Non-essential fields are allowed to be 'undefined' and then the
entry's field will remain zeroed.
2013-10-16 15:01:16 +02:00
Carlos Martín Nieto
3c9e429038 Remove old signature test 2013-10-16 14:23:03 +02:00
Carlos Martín Nieto
21464aeece Wrap git_revparse_single 2013-09-05 15:37:01 +02:00
Carlos Martín Nieto
72078cb099 Wrap ref creation in elixir 2013-09-04 01:16:50 +02:00
Carlos Martín Nieto
0d24afb089 Get rid of the tagged OID
This means we no longer accept any iolist in some of the functions,
but we might bring it back later.

There is also a new function, geef_ref:create_symbolic() to create
symbolic references, since we can no longer differentiate between a
name and an OID.
2013-09-03 20:37:00 +02:00
Carlos Martín Nieto
895041b2a7 tests: properly setup and teardown 2013-09-02 20:10:38 +02:00
Carlos Martín Nieto
9e4826741c Add a tiny elixir test 2013-09-02 02:18:41 +02:00
Carlos Martín Nieto
15ba2dd65f Add support for index_entry's size field 2013-09-01 19:56:35 +02:00
Carlos Martín Nieto
e39a17fe43 Allow retrieval of index entries
This is still very basic, as we only actually load three fields into
the record.
2013-09-01 15:30:15 +02:00
Carlos Martín Nieto
0bbb69122b Make sure to test geef_ref:resolve() 2013-08-31 17:34:24 +02:00
Carlos Martín Nieto
bb35fce5cc Implement ref iterators 2013-08-09 23:25:55 +02:00
Carlos Martín Nieto
bd44d3f6b0 Oops: make sig tests pass 2013-06-12 02:19:21 +02:00
Carlos Martín Nieto
9d222df593 Initial signature test 2013-06-11 16:34:02 +02:00
Carlos Martín Nieto
f8f791296a Put the ref tests under the same function 2013-06-09 02:19:53 +02:00
Carlos Martín Nieto
e8684471c0 Add ref shorthand function 2013-06-09 02:14:35 +02:00
Carlos Martín Nieto
042156d843 Bind ref name dwim 2013-06-07 17:55:16 +02:00
Carlos Martín Nieto
ac3d2d03fe Rename the ref record to geef_reference
Remove the access hacks for elixir and make :geef_reference an elixir
macro as well.
2013-06-05 21:22:25 +02:00
Carlos Martín Nieto
bd510de1e3 Also parse "done" lines
This works well for now, but if we're going to support
multi_ack_detailed at some point, we need a better way of parsing the
particular pkt.
2013-05-31 14:21:59 +02:00
Carlos Martín Nieto
75e3d5416c Better handling of flush, short lines 2013-05-28 17:57:45 +02:00
Carlos Martín Nieto
ecb7cdfc23 Parse protocol requests 2013-05-28 09:21:24 +02:00
Carlos Martín Nieto
03f43d3265 pkt: parse want and have lines 2013-05-27 12:55:04 +02:00
Carlos Martín Nieto
4a2f2e8ab2 Namespace the records
This makes it useful for users of the bindings. The naming is the same
as the module to allow elixir to treat the records in much the same
way as its native module/record hybrid.
2013-05-13 11:05:59 +02:00
Carlos Martín Nieto
cc8124a6b9 Accept an iolist in the revwalk 2013-05-12 15:02:54 +02:00
Carlos Martín Nieto
1077a055dc Remove geef_ref:target/1, use the record 2013-05-11 04:01:55 +02:00
Carlos Martín Nieto
1621871387 Simpify rm_r 2013-05-04 01:05:35 +02:00
Carlos Martín Nieto
3f4d51c0e1 Simple version of index_add 2013-05-03 23:42:49 +02:00
Carlos Martín Nieto
b420b61c19 Clean up after the repo tests 2013-05-02 19:40:01 +02:00
Carlos Martín Nieto
0aa11d8532 Allow creation of refs 2013-05-02 06:24:15 +02:00
Carlos Martín Nieto
353995a2da Properly stop the repo and revwalk servers
Return the 4-tuple when asked to stop instead of the 3-tuple so we do
indicate the stop was normal.
2013-04-10 20:11:07 +02:00
Carlos Martín Nieto
d0034b1142 Add a test for revwalk 2013-04-10 19:08:05 +02:00
Carlos Martín Nieto
8d7fbb1ec5 Add a couple more tests 2013-03-30 15:11:29 +01:00
Scott Chacon
abdd070a77 hex_to_raw actually works 2010-05-25 07:37:45 -07:00
Scott Chacon
d76f1e87f2 actually loading and running some libgit2 code 2010-05-24 17:09:32 -07:00
Scott Chacon
89c86150c8 skeleton nif that runs 2010-05-24 16:44:36 -07:00