summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 91521b9)
raw | patch | inline | side by side (parent: 91521b9)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 13 Oct 2007 13:52:23 +0000 (15:52 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 13 Oct 2007 13:52:23 +0000 (15:52 +0200) |
tig.c | patch | blob | history |
index 06c3d040d9352029bf62cae4df7e99f81ca2b666..7bbdc82832a3e59e062c97dda952ffbad3aa5ffb 100644 (file)
--- a/tig.c
+++ b/tig.c
if (opt[0] && opt[0] != '-')
break;
+ if (!strcmp(opt, "--")) {
+ i++;
+ break;
+ }
+
+ if (check_option(opt, 'v', "version", OPT_NONE)) {
+ printf("tig version %s\n", TIG_VERSION);
+ return FALSE;
+ }
+
+ if (check_option(opt, 'h', "help", OPT_NONE)) {
+ printf(usage);
+ return FALSE;
+ }
+
+ if (!strcmp(opt, "-S")) {
+ opt_request = REQ_VIEW_STATUS;
+ continue;
+ }
+
if (!strcmp(opt, "-l")) {
opt_request = REQ_VIEW_LOG;
continue;
continue;
}
- if (!strcmp(opt, "-S")) {
- opt_request = REQ_VIEW_STATUS;
- continue;
- }
-
if (check_option(opt, 'n', "line-number", OPT_INT, &opt_num_interval)) {
opt_line_number = TRUE;
continue;
continue;
}
- if (check_option(opt, 'v', "version", OPT_NONE)) {
- printf("tig version %s\n", TIG_VERSION);
- return FALSE;
- }
-
- if (check_option(opt, 'h', "help", OPT_NONE)) {
- printf(usage);
- return FALSE;
- }
-
- if (!strcmp(opt, "--")) {
- i++;
- break;
- }
-
die("unknown option '%s'\n\n%s", opt, usage);
}