aboutsummaryrefslogtreecommitdiff
path: root/ui-stats.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'ui-stats.c')
-rw-r--r--ui-stats.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/ui-stats.c b/ui-stats.c
index 02c60ef..40ed6c2 100644
--- a/ui-stats.c
+++ b/ui-stats.c
@@ -1,13 +1,3 @@
-/* ui-stats.c: generate stats view
- *
- * Copyright (C) 2006-2014 cgit Development Team <cgit@lists.zx2c4.com>
- *
- * Licensed under GNU General Public License v2
- * (see COPYING for full license text)
- */
-
-#define USE_THE_REPOSITORY_VARIABLE
-
#include "cgit.h"
#include "ui-stats.h"
#include "html.h"
@@ -240,7 +230,7 @@ static struct string_list collect_stats(const struct cgit_period *period)
argv[4] = ctx.qry.path;
argc += 2;
}
- repo_init_revisions(the_repository, &rev, NULL);
+ init_revisions(&rev, NULL);
rev.abbrev = DEFAULT_ABBREV;
rev.commit_format = CMIT_FMT_DEFAULT;
rev.max_parents = 1;