Commit 848d222bdbfa83a8d7db2bae98e90e7d7ea49bc1

Thomas de Grivel 2022-05-22T14:11:26

git nif

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/c_src/git_nif.c b/c_src/git_nif.c
index 6e73253..46cdfab 100644
--- a/c_src/git_nif.c
+++ b/c_src/git_nif.c
@@ -315,14 +315,14 @@ static ERL_NIF_TERM log_nif (ErlNifEnv *env, int argc,
 {
   char *branch_name = NULL;
   git_diff_options diffopts = {GIT_DIFF_OPTIONS_VERSION, 0, GIT_SUBMODULE_IGNORE_UNSPECIFIED, {NULL, 0}, NULL, NULL, NULL, 3, 0, 0, 0, 0, 0};
-  git_oid oid;
+  /*git_oid oid;*/
   ERL_NIF_TERM ok;
   char *path = NULL;
   git_pathspec *ps = NULL;
   git_repository *r = NULL;
   char *repo_dir = NULL;
   ERL_NIF_TERM res;
-  git_revwalk *walker;
+  /*git_revwalk *walker;*/
   if (argc != 3 || !argv || !argv[0] || !argv[1] || !argv[2]) {
     res = enif_make_atom(env, "badarg");
     goto error;