Commit Diff


commit - 3a62228f453a74805ca1b8c08a062e331b624ff6
commit + 6570a66d534155e8cfc35bc2023b9f655a6f30eb
blob - 07efa35110e6f0b735745c6382c20282fa47f0b9
blob + 0ff3b6287ab653b866bd0d00bd1eb725becd81e6
--- tog/tog.c
+++ tog/tog.c
@@ -1087,6 +1087,18 @@ draw_commit(struct tog_view *view, struct got_commit_o
 	col = limit;
 	if (col > avail)
 		goto done;
+
+	if (avail >= 120) {
+		char *id_str;
+		err = got_object_id_str(&id_str, id);
+		if (err)
+			goto done;
+		wprintw(view->window, "%.8s ", id_str);
+		free(id_str);
+		col += 9;
+		if (col > avail)
+			goto done;
+	}
 
 	author = strdup(got_object_commit_get_author(commit));
 	if (author == NULL) {