lua binding: add .name attribute for sections pushed by uci.foreach and uci.get_all
[project/uci.git] / cli.c
diff --git a/cli.c b/cli.c
index 229352f..02a34c0 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -135,11 +135,7 @@ static int package_cmd(int cmd, char *package)
        struct uci_package *p = NULL;
        int ret;
 
-       if (cmd == CMD_CHANGES)
-               ctx->flags |= UCI_FLAG_SAVED_HISTORY;
        ret = uci_load(ctx, package, &p);
-       if (cmd == CMD_CHANGES)
-               ctx->flags &= ~UCI_FLAG_SAVED_HISTORY;
 
        if (ret != UCI_OK) {
                cli_perror();