Skip to content

Commit

Permalink
Add auto-refresh to log view
Browse files Browse the repository at this point in the history
  • Loading branch information
koutcher committed Oct 2, 2021
1 parent 9b3708f commit db9f856
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,15 @@ log_open(struct view *view, enum open_flags flags)
"--stat", use_mailmap_arg(), "%(logargs)", "%(cmdlineargs)",
"%(revargs)", "--no-color", "--", "%(fileargs)", NULL
};
enum status_code code;

return begin_update(view, NULL, log_argv, flags);
code = begin_update(view, NULL, log_argv, flags);
if (code != SUCCESS)
return code;

watch_register(&view->watch, WATCH_HEAD | WATCH_REFS);

return SUCCESS;
}

static enum request
Expand Down

0 comments on commit db9f856

Please sign in to comment.