Commit 54db1a18 by Michael Schubert

Cleanup

* indexer: remove leftover printf

* commit: remove unused macros COMMIT_BASIC_PARSE, COMMIT_FULL_PARSE
  and COMMIT_PRINT
parent f7ed0c34
...@@ -18,15 +18,6 @@ ...@@ -18,15 +18,6 @@
#include <stdarg.h> #include <stdarg.h>
#define COMMIT_BASIC_PARSE 0x0
#define COMMIT_FULL_PARSE 0x1
#define COMMIT_PRINT(commit) {\
char oid[41]; oid[40] = 0;\
git_oid_fmt(oid, &commit->object.id);\
printf("Oid: %s | In degree: %d | Time: %u\n", oid, commit->in_degree, commit->commit_time);\
}
static void clear_parents(git_commit *commit) static void clear_parents(git_commit *commit)
{ {
unsigned int i; unsigned int i;
......
...@@ -839,7 +839,6 @@ int git_indexer_run(git_indexer *idx, git_indexer_stats *stats) ...@@ -839,7 +839,6 @@ int git_indexer_run(git_indexer *idx, git_indexer_stats *stats)
git_oid_cpy(&pentry->sha1, &oid); git_oid_cpy(&pentry->sha1, &oid);
pentry->offset = entry_start; pentry->offset = entry_start;
git_oid_fmt(fmt, &oid); git_oid_fmt(fmt, &oid);
printf("adding %s to cache\n", fmt);
error = git_vector_insert(&idx->pack->cache, pentry); error = git_vector_insert(&idx->pack->cache, pentry);
if (error < 0) if (error < 0)
goto cleanup; goto cleanup;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment