summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 37b8cf4)
raw | patch | inline | side by side (parent: 37b8cf4)
author | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 30 Jan 2009 08:43:56 +0000 (09:43 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 3 Feb 2009 14:27:24 +0000 (15:27 +0100) |
NEWS | patch | blob | history | |
tig.c | patch | blob | history |
index de00136e74e331ab7e580fbd3bd50b8d94f4913a..aa1e75895fd9b9e71de69d6f76f787d7aff3de79 100644 (file)
--- a/NEWS
+++ b/NEWS
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:
index dc1d2251464c031c7744d22bd9ebac928975c0a4..bc1dacf40b57071c4990e9885329aee9f0e42b9d 100644 (file)
--- a/tig.c
+++ b/tig.c
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;
} 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;
}