From: Jonas Fonseca Date: Tue, 13 Jan 2009 21:45:51 +0000 (+0100) Subject: Blame: update blame to selected commit when pressing 'B' X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=460a26ad59d75f4b37bd2674b75593a7f55cae9a;p=tig.git Blame: update blame to selected commit when pressing 'B' --- diff --git a/tig.c b/tig.c index f52c8a4..3189f44 100644 --- a/tig.c +++ b/tig.c @@ -3764,6 +3764,15 @@ blame_request(struct view *view, enum request request, struct line *line) 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");