On Fri, Jan 18, 2019 at 2:17 PM Nickolai Belakovski <nbelakovski@xxxxxxxxx> wrote: > > > I think avoiding this would be check, we can simply check ref->kind == > FILTER_REFS_BRANCHES ahead of calling into get_worktree_path and > provide an empty string otherwise. > *would be check -> would be cheap