From d466dfc252f9896b1d6bdce623067378e04b8e71 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Sun, 29 Jul 2018 16:33:26 +0100 Subject: added my name to copyright statements -- few tweaks --- cmd_70.c | 41 ++++++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 9 deletions(-) (limited to 'cmd_70.c') diff --git a/cmd_70.c b/cmd_70.c index 8478cab..3aec797 100644 --- a/cmd_70.c +++ b/cmd_70.c @@ -1,6 +1,7 @@ /* cmd.c: the cgit command dispatcher * * Copyright (C) 2006-2017 cgit Development Team + * 2018 Vincenzo 'KatolaZ' Nicosia * * Licensed under GNU General Public License v2 * (see COPYING for full license text) @@ -9,7 +10,7 @@ #include "cgit.h" #include "cmd.h" #include "cache.h" -#include "ui-shared.h" +#include "ui_70-shared.h" #include "ui-atom.h" #include "ui-blame.h" #include "ui-blob.h" @@ -29,16 +30,23 @@ static void HEAD_fn(void) { - cgit_clone_head(); + cgit_gopher_error("Not implemented"); + return; +/* cgit_clone_head();*/ } static void atom_fn(void) { - cgit_print_atom(ctx.qry.head, ctx.qry.path, ctx.cfg.max_atom_items); + cgit_gopher_error("Not implemented"); + return; +/* cgit_print_atom(ctx.qry.head, ctx.qry.path, ctx.cfg.max_atom_items);*/ } static void about_fn(void) { + cgit_gopher_error("Not implemented"); + return; +/* if (ctx.repo) { size_t path_info_len = ctx.env.path_info ? strlen(ctx.env.path_info) : 0; if (!ctx.qry.path && @@ -62,19 +70,27 @@ static void about_fn(void) } } else cgit_print_site_readme(); +*/ } + static void blame_fn(void) { + cgit_gopher_error("Not implemented"); + return; +/* if (ctx.cfg.enable_blame) cgit_print_blame(); else cgit_print_error_page(403, "Forbidden", "Blame is disabled"); +*/ } static void blob_fn(void) { - cgit_print_blob(ctx.qry.sha1, ctx.qry.path, ctx.qry.head, 0); + cgit_gopher_error("Not implemented"); + return; +/* cgit_print_blob(ctx.qry.sha1, ctx.qry.path, ctx.qry.head, 0);*/ } static void commit_fn(void) @@ -94,7 +110,9 @@ static void rawdiff_fn(void) static void info_fn(void) { - cgit_clone_info(); + cgit_gopher_error("Not implemented"); + return; +/* cgit_clone_info();*/ } static void log_fn(void) @@ -115,7 +133,9 @@ static void ls_cache_fn(void) static void objects_fn(void) { - cgit_clone_objects(); + cgit_gopher_error("Not implemented"); + return; +/* cgit_clone_objects();*/ } static void repolist_fn(void) @@ -140,13 +160,16 @@ static void refs_fn(void) static void snapshot_fn(void) { - cgit_print_snapshot(ctx.qry.head, ctx.qry.sha1, ctx.qry.path, - ctx.qry.nohead); + cgit_gopher_error("Not implemented"); + return; +/* cgit_print_snapshot(ctx.qry.head, ctx.qry.sha1, ctx.qry.path, ctx.qry.nohead);*/ } static void stats_fn(void) { - cgit_show_stats(); + cgit_gopher_error("Not implemented"); + return; +/* cgit_show_stats();*/ } static void summary_fn(void) -- cgit v1.2.3