fix misleading helper function name
noworktreeitems was false for NoWorkTreeItems which was hard to understand. Sponsored-by: Dartmouth College's DANDI project
This commit is contained in:
parent
ce241f9aa9
commit
a522a41a42
1 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ withKeyOptions' ko auto mkkeyaction fallbackaction worktreeitems = do
|
|||
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
|
||||
|
@ -260,7 +260,7 @@ withKeyOptions' ko auto mkkeyaction fallbackaction worktreeitems = do
|
|||
, a
|
||||
)
|
||||
|
||||
noworktreeitems = case worktreeitems of
|
||||
nospecifiedworktreeitems = case worktreeitems of
|
||||
WorkTreeItems [] -> True
|
||||
WorkTreeItems _ -> False
|
||||
NoWorkTreeItems -> False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue