From: Jonas Fonseca Date: Fri, 23 Jan 2009 11:37:08 +0000 (+0100) Subject: Blame view: fix reloading of the diff view for changes not yet committed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6791c11c3bef57c9018a8e9bb36ce2ef7b0377fe;p=tig.git Blame view: fix reloading of the diff view for changes not yet committed The regression was introduced in e00ea5d (Blame: do to not reload the diff view for same commits). --- diff --git a/tig.c b/tig.c index 88338d0..010efc5 100644 --- a/tig.c +++ b/tig.c @@ -4184,6 +4184,8 @@ blame_request(struct view *view, enum request request, struct line *line) } open_view(view, REQ_VIEW_DIFF, flags); + if (VIEW(REQ_VIEW_DIFF)->pipe && !strcmp(blame->commit->id, NULL_ID)) + string_copy_rev(VIEW(REQ_VIEW_DIFF)->ref, NULL_ID); break; default: