summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 390a826)
raw | patch | inline | side by side (parent: 390a826)
author | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 18 Sep 2006 15:33:28 +0000 (17:33 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Mon, 18 Sep 2006 15:33:28 +0000 (17:33 +0200) |
tig.c | patch | blob | history |
index 1f92114dc0710c9b2660deda4a7daa6601eaa460..471fa4dd6bd37f578e6c6f9c64a332d8904de2ae 100644 (file)
--- a/tig.c
+++ b/tig.c
for (i = 1; i < argc; i++) {
char *opt = argv[i];
+ if (!strcmp(opt, "log") ||
+ !strcmp(opt, "diff") ||
+ !strcmp(opt, "show")) {
+ opt_request = opt[0] == 'l'
+ ? REQ_VIEW_LOG : REQ_VIEW_DIFF;
+ break;
+ }
+
if (opt[0] && opt[0] != '-')
break;
break;
}
- if (!strcmp(opt, "log") ||
- !strcmp(opt, "diff") ||
- !strcmp(opt, "show")) {
- opt_request = opt[0] == 'l'
- ? REQ_VIEW_LOG : REQ_VIEW_DIFF;
- break;
- }
-
die("unknown option '%s'\n\n%s", opt, usage);
}