feat: allow to update vcs changed files info for current project

This commit is contained in:
Igor Támara 2025-10-25 08:31:45 -05:00 committed by CJ van den Berg
parent 8d0fa9a355
commit fdf2b6d376
3 changed files with 20 additions and 0 deletions

View file

@ -1370,6 +1370,10 @@ pub fn mainview() ?*MainView {
return if (current().mainview_) |*mv| mv.dynamic_cast(MainView) else null;
}
pub fn sync_with_vcs() !void {
try project_manager.request_sync_with_vcs();
}
pub fn mainview_widget() Widget {
return current().mainview_ orelse @panic("tui main view not found");
}