summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4036f35)
raw | patch | inline | side by side (parent: 4036f35)
author | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 13 Jan 2009 21:45:51 +0000 (22:45 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 13 Jan 2009 21:55:16 +0000 (22:55 +0100) |
tig.c | patch | blob | history |
index f52c8a4505d1c894f83b736b2384961d73f663df..3189f4437aa4abaad606946e5caa9ed394dd19df 100644 (file)
--- a/tig.c
+++ b/tig.c
struct blame *blame = line->data;
switch (request) {
+ case REQ_VIEW_BLAME:
+ if (!blame->commit || !strcmp(blame->commit->id, NULL_ID)) {
+ report("Commit ID unknown");
+ break;
+ }
+ string_copy(opt_ref, blame->commit->id);
+ open_view(view, REQ_VIEW_BLAME, OPEN_REFRESH);
+ return request;
+
case REQ_ENTER:
if (!blame->commit) {
report("No commit loaded yet");