noworktreeitems was false for NoWorkTreeItems which was hard to understand.
Sponsored-by: Dartmouth College's DANDI project
bare <- fromRepo Git.repoIsLocalBare
when (auto && bare) $
giveup "Cannot use --auto in a bare repository"
- case (noworktreeitems, ko) of
+ case (nospecifiedworktreeitems, ko) of
(True, Nothing)
| bare -> nofilename $ noauto runallkeys
| otherwise -> fallbackaction worktreeitems
, a
)
- noworktreeitems = case worktreeitems of
+ nospecifiedworktreeitems = case worktreeitems of
WorkTreeItems [] -> True
WorkTreeItems _ -> False
NoWorkTreeItems -> False