def worktree_browser_widget(parent, update=True, settings=None):
 view = Browser(parent, update=update, settings=settings)
 view.tree.setModel(GitRepoModel(view.tree))
 view.ctl = BrowserController(view.tree)
 if update:
  view.tree.refresh()
 return view

def worktree_browser_widget ( parent , update = True , settings = None ) : view = Browser ( parent , update = update , settings = settings ) view . tree . setModel ( GitRepoModel ( view . tree ) ) view . ctl = BrowserController ( view . tree ) if update : view . tree . refresh ( ) return view
return a widget for immediate use .