summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6b68fd2)
Being able to have the same diff open twice is not very useful.
buf[pos++] = 0;
if (!string_format(opt_cmd, "git %s", buf))
return ERR;
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;