Commit 3e9926ea004f2a839c0600f2daef1d04fca7894d

Stefan Sperling 2019-01-04T18:40:22

fix diffing of blamed commit in 'tog blame'

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/tog/tog.c b/tog/tog.c
index cc1fcce..3f63658 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -2724,8 +2724,7 @@ input_blame_view(struct tog_view **new_view, struct tog_view **dead_view,
 			struct got_commit_object *commit = NULL;
 			id = get_selected_commit_id(s->blame.lines,
 			    s->first_displayed_line, s->selected_line);
-			if (id == NULL || got_object_id_cmp(id,
-			    s->blamed_commit->id) == 0)
+			if (id == NULL)
 				break;
 			err = got_object_open_as_commit(&commit, s->repo, id);
 			if (err)