commit - a1b774028efab4c5ed609551502edf024af8cca5
commit + f2f6d207e8856d57057b4c2e3237fcfade4278ed
blob - 8981c293642da4f35c4aabf2ca1165e4b2c65fee
blob + 1f5eb46438cd3951cfcc43a13ec23c941b538143
--- tog/tog.c
+++ tog/tog.c
static const struct got_error *
show_log_view(struct tog_view *view)
{
+ const struct got_error *err;
struct tog_log_view_state *s = &view->state.log;
if (s->thread == NULL) {
&s->thread_args);
if (errcode)
return got_error_set_errno(errcode, "pthread_create");
+ if (s->thread_args.commits_needed > 0) {
+ err = trigger_log_thread(view, 1,
+ &s->thread_args.commits_needed,
+ &s->thread_args.log_complete,
+ &s->thread_args.need_commits,
+ &s->thread_args.commit_loaded);
+ if (err)
+ return err;
+ }
}
return draw_commits(view, &s->last_displayed_entry,