commit - 0e2a293c046868d92a2f39cd404f35d0aeea042c
commit + ee41ec32de9bcf62dc8e21bcf6fd56cd34891273
blob - 9c48d2bd222a4577eb9c99ee43a38db470dc7933
blob + 083e46a194ac22629e93497fb8b2b447d8c08794
--- tog/tog.c
+++ tog/tog.c
wchar_t *wline;
int width, wlimit;
struct tog_blame_line *blame_line;
+ struct got_object_id *prev_id = NULL;
rewind(f);
werase(window);
wstandout(window);
blame_line = &lines[lineno - 1];
- if (blame_line->annotated) {
+ if (blame_line->annotated && prev_id &&
+ got_object_id_cmp(prev_id, blame_line->id) == 0)
+ waddstr(window, " ");
+ else if (blame_line->annotated) {
char *id_str;
err = got_object_id_str(&id_str, blame_line->id);
if (err) {
}
wprintw(window, "%.8s ", id_str);
free(id_str);
- } else
- waddstr(window, " ");
+ prev_id = blame_line->id;
+ } else {
+ waddstr(window, "........ ");
+ prev_id = NULL;
+ }
waddwstr(window, wline);
while (width < wlimit) {