summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6b68fd2)
raw | patch | inline | side by side (parent: 6b68fd2)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sun, 3 Sep 2006 20:00:55 +0000 (22:00 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Sun, 3 Sep 2006 20:03:57 +0000 (22:03 +0200) |
Being able to have the same diff open twice is not very useful.
tig.c | patch | blob | history |
index 8124d3cae7f49356db1eaa983134d10916cc685f..1ad19946bb6b2e32cfc369813d9047a08e2b1188 100644 (file)
--- a/tig.c
+++ b/tig.c
buf[pos++] = 0;
if (!string_format(opt_cmd, "git %s", buf))
return ERR;
- opt_request = REQ_VIEW_PAGER;
+ if (strncmp(buf, "show", 4) && isspace(buf[4]))
+ opt_request = REQ_VIEW_DIFF;
+ else
+ opt_request = REQ_VIEW_PAGER;
return OK;
}