Code

Remove parsing of deprecated option -S and subcommands log and diff
authorJonas Fonseca <fonseca@diku.dk>
Fri, 30 Jan 2009 08:43:56 +0000 (09:43 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Tue, 3 Feb 2009 14:27:24 +0000 (15:27 +0100)
NEWS
tig.c

diff --git a/NEWS b/NEWS
index de00136e74e331ab7e580fbd3bd50b8d94f4913a..aa1e75895fd9b9e71de69d6f76f787d7aff3de79 100644 (file)
--- 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 dc1d2251464c031c7744d22bd9ebac928975c0a4..bc1dacf40b57071c4990e9885329aee9f0e42b9d 100644 (file)
--- 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;
        }