Could snapshot links be named after git describe ?

2016-10-10 Thread Sylvain Rabot
Hi, Currently the snapshots and resulted downloaded files are named like this -. I was wondering if they could be named using the git describe format instead. I think it would make more sens and be prettier. Naming the file after the branch does not make much sens according to me as it could be

Re: [PATCH 1/1] ui-log: fix data corruption

2016-10-10 Thread Christian Hesse
John Keeping on Sun, 2016/10/09 12:26: > On Fri, Oct 07, 2016 at 11:21:23PM +0200, Christian Hesse wrote: > > "Jason A. Donenfeld" on Fri, 2016/10/07 21:43: > > > Does this ever get freed, though? > > > > I ran cgit in valgrind with this patch applied. No changes in what is > > lost - so loo

RFC: don't cache objects larger than X

2016-10-10 Thread Konstantin Ryabitsev
Hi, all: I have an unfortunate problem of maintaining several git trees where a single patch can be over 1GB in size (I know this is crazy, but this actually happens). When spam crawlers access such patch over /commit links, this generates a colorized version that is easily 10GB in size in the cac

[PATCH 3/3] shared: remove unused function strlpart()

2016-10-10 Thread Christian Hesse
From: Christian Hesse Signed-off-by: Christian Hesse --- cgit.h | 1 - shared.c | 16 2 files changed, 17 deletions(-) diff --git a/cgit.h b/cgit.h index bef6e5f..fbc6c6a 100644 --- a/cgit.h +++ b/cgit.h @@ -333,7 +333,6 @@ extern int chk_non_negative(int result, char *msg)

[PATCH 1/3] ui-repolist: fix memory leak

2016-10-10 Thread Christian Hesse
From: Christian Hesse Signed-off-by: Christian Hesse --- ui-repolist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui-repolist.c b/ui-repolist.c index 1d9a7f7..7158bf7 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -343,13 +343,15 @@ void cgit_print_repolist(void)

[PATCH 2/3] shared: remove unused function strrpart()

2016-10-10 Thread Christian Hesse
From: Christian Hesse Signed-off-by: Christian Hesse --- cgit.h | 1 - shared.c | 15 --- 2 files changed, 16 deletions(-) diff --git a/cgit.h b/cgit.h index df42312..bef6e5f 100644 --- a/cgit.h +++ b/cgit.h @@ -334,7 +334,6 @@ extern int chk_non_negative(int result, char *msg);