Allow getting a tree entry

This commit is contained in:
Carlos Martín Nieto
2013-03-02 02:56:58 +01:00
parent 1807ba4374
commit b5b68cce8b
8 changed files with 125 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
#include "oid.h"
#include "object.h"
#include "commit.h"
#include "tree.h"
#include "geef.h"
#include <stdio.h>
#include <string.h>
@@ -43,7 +44,6 @@ static int load(ErlNifEnv *env, void **priv, ERL_NIF_TERM load_info)
if (geef_repository_type == NULL)
return -1;
atoms.ok = enif_make_atom(env, "ok");
atoms.error = enif_make_atom(env, "error");
atoms.true = enif_make_atom(env, "true");
@@ -100,6 +100,7 @@ static ErlNifFunc geef_funcs[] =
{"object_lookup", 2, geef_object_lookup},
{"commit_tree", 1, geef_commit_tree},
{"commit_tree_id", 1, geef_commit_tree_id},
{"tree_bypath", 2, geef_tree_bypath},
};
ERL_NIF_INIT(geef, geef_funcs, load, NULL, NULL, unload)