From 9f540f2106dcf724e4b8c41489d4bda6ccfe65d8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 9 Feb 2008 17:31:21 +0100 Subject: [PATCH] reorganize some code, add an extra command for adding unnamed sections --- cli.c | 35 ++++++++++++++++++++++++++++ file.c | 44 ----------------------------------- history.c | 69 ++++++++++++++++++++++++++++++++++--------------------- list.c | 44 ++++++++++++++++++++++++++++++++++- uci.h | 9 ++++++++ util.c | 22 +++++++++++++++--- 6 files changed, 149 insertions(+), 74 deletions(-) diff --git a/cli.c b/cli.c index 95bc34e..be479c4 100644 --- a/cli.c +++ b/cli.c @@ -43,6 +43,7 @@ enum { CMD_EXPORT, CMD_COMMIT, /* other cmds */ + CMD_ADD, CMD_IMPORT, CMD_HELP, }; @@ -58,6 +59,7 @@ static void uci_usage(void) "\texport []\n" "\timport []\n" "\tchanges []\n" + "\tadd \n" "\tshow [[.
[.