From: Jonas Fonseca Date: Fri, 30 Jan 2009 08:43:56 +0000 (+0100) Subject: Remove parsing of deprecated option -S and subcommands log and diff X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f265ccd4eed21a0352df0b3366c4eb3128e7970c;p=tig.git Remove parsing of deprecated option -S and subcommands log and diff --- diff --git a/NEWS b/NEWS index de00136..aa1e758 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,7 @@ Incompatibilities: users and was never meant to be exposed. - The "tree-parent" action was renamed to "parent". Warnings will be emitted for transition. + - Remove parsing of deprecated option -S and subcommands log and diff. Improvements: diff --git a/tig.c b/tig.c index dc1d225..bc1dacf 100644 --- a/tig.c +++ b/tig.c @@ -884,9 +884,7 @@ parse_options(int argc, const char *argv[], const char ***run_argv) return REQ_VIEW_MAIN; subcommand = argv[1]; - if (!strcmp(subcommand, "status") || !strcmp(subcommand, "-S")) { - if (!strcmp(subcommand, "-S")) - warn("`-S' has been deprecated; use `tig status' instead"); + if (!strcmp(subcommand, "status")) { if (argc > 2) warn("ignoring arguments after `%s'", subcommand); return REQ_VIEW_STATUS; @@ -907,10 +905,6 @@ parse_options(int argc, const char *argv[], const char ***run_argv) } else if (!strcmp(subcommand, "show")) { request = REQ_VIEW_DIFF; - } else if (!strcmp(subcommand, "log") || !strcmp(subcommand, "diff")) { - request = subcommand[0] == 'l' ? REQ_VIEW_LOG : REQ_VIEW_DIFF; - warn("`tig %s' has been deprecated", subcommand); - } else { subcommand = NULL; }