diff options
author | Werner Almesberger <werner@almesberger.net> | 2016-09-24 16:25:42 -0300 |
---|---|---|
committer | Werner Almesberger <werner@almesberger.net> | 2016-09-24 16:25:42 -0300 |
commit | b830f902777165382475e545dc08cdecdd6b7242 (patch) | |
tree | bcdbaa7fb8dc07efa7c6a4b9bc52f4887f16207b | |
parent | be06ff46e5e63686585296008e387f147a642c5d (diff) | |
download | eeshow-b830f902777165382475e545dc08cdecdd6b7242.tar.gz eeshow-b830f902777165382475e545dc08cdecdd6b7242.tar.bz2 eeshow-b830f902777165382475e545dc08cdecdd6b7242.zip |
file/git-hist.c (dump_one): remove debug code
Looked quite ugly, and this part now seems to work fine.
-rw-r--r-- | file/git-hist.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/file/git-hist.c b/file/git-hist.c index 0d17ff8..6b01bb5 100644 --- a/file/git-hist.c +++ b/file/git-hist.c @@ -633,11 +633,10 @@ void hist_iterate(struct vcs_history *history, /* ----- Textual dump (mainly for debugging) ------------------------------- */ -/* @@@ still haven't tested -+- */ - -//#define DEBUG - -// http://stackoverflow.com/questions/12132862/how-do-i-get-the-name-of-the-current-branch-in-libgit2 +/* + * useful: + * http://stackoverflow.com/questions/12132862/how-do-i-get-the-name-of-the-current-branch-in-libgit2 + */ static void dump_one(void *user, struct vcs_hist *h, const struct vcs_hist *next) @@ -649,18 +648,7 @@ static void dump_one(void *user, struct vcs_hist *h, unsigned i, j; bool before, here, after; -#ifdef DEBUG -fprintf(stderr, "%p (%u/%u):", h, h->n_newer, h->n_older); -for (i = 0; i != h->n_threads; i++) - fprintf(stderr, " %p", h->threads[i]); -fprintf(stderr, " (%p)\n", next); -#endif t = threads_classify(history, h, next); -#ifdef DUMP -for (i = 0; i != n; i++) - fprintf(stderr, "%d ", t[i]); -fprintf(stderr, "\n"); -#endif for (i = 0; i != n; i++) { before = 0; for (j = 0; j != i; j++) |