git style quoting for ActionItemOther
Added StringContainingQuotedPath, which is used for ActionItemOther. In the process, checked every ActionItemOther for those containing filenames, and made them use quoting. Sponsored-by: Graham Spencer on Patreon
This commit is contained in:
parent
d689a5b338
commit
2ba1559a8e
41 changed files with 158 additions and 89 deletions
|
@ -89,6 +89,12 @@ showStartOther command mdesc si = outputMessage json $ encodeBS $
|
|||
where
|
||||
json = JSON.start command Nothing Nothing si
|
||||
|
||||
showStartNothing :: String -> SeekInput -> Annex ()
|
||||
showStartNothing command si = outputMessage json $ encodeBS $
|
||||
command ++ " "
|
||||
where
|
||||
json = JSON.start command Nothing Nothing si
|
||||
|
||||
showStartMessage :: StartMessage -> Annex ()
|
||||
showStartMessage (StartMessage command ai si) = case ai of
|
||||
ActionItemAssociatedFile _ _ -> showStartActionItem command ai si
|
||||
|
@ -96,7 +102,8 @@ showStartMessage (StartMessage command ai si) = case ai of
|
|||
ActionItemBranchFilePath _ _ -> showStartActionItem command ai si
|
||||
ActionItemFailedTransfer _ _ -> showStartActionItem command ai si
|
||||
ActionItemTreeFile _ -> showStartActionItem command ai si
|
||||
ActionItemOther msg -> showStartOther command msg si
|
||||
ActionItemOther Nothing -> showStartNothing command si
|
||||
ActionItemOther _ -> showStartActionItem command ai si
|
||||
OnlyActionOn _ ai' -> showStartMessage (StartMessage command ai' si)
|
||||
showStartMessage (StartUsualMessages command ai si) = do
|
||||
outputType <$> Annex.getState Annex.output >>= \case
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue