From 6791c11c3bef57c9018a8e9bb36ce2ef7b0377fe Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 23 Jan 2009 12:37:08 +0100 Subject: [PATCH] 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). --- tig.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.30.2