Add is_clone flag to available commands

This will be used to make these operations configurable via a config
option.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Dan McGee
2011-01-12 12:06:06 -06:00
committed by Lars Hjemli
parent 17596459fe
commit 35d33014fb
2 changed files with 23 additions and 22 deletions

3
cmd.h
View File

@ -8,7 +8,8 @@ struct cgit_cmd {
cgit_cmd_fn fn;
unsigned int want_repo:1,
want_layout:1,
want_vpath:1;
want_vpath:1,
is_clone:1;
};
extern struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx);