filter out control characters in all other Messages
This does, as a side effect, make long notes in json output not be indented. The indentation is only needed to offset them underneath the display of the file they apply to, so that's ok. Sponsored-by: Brock Spratlen on Patreon
This commit is contained in:
parent
a0e6fa18eb
commit
8b6c7bdbcc
54 changed files with 183 additions and 164 deletions
|
@ -948,14 +948,14 @@ seekExportContent o rs (currbranch, _) = or <$> forM rs go
|
|||
warncannotupdateexport r mtb exported currb = case mtb of
|
||||
Nothing -> inRepo (Git.Ref.tree currb) >>= \case
|
||||
Just currt | not (any (== currt) (exportedTreeishes exported)) ->
|
||||
showLongNote $ unwords
|
||||
showLongNote $ UnquotedString $ unwords
|
||||
[ notupdating
|
||||
, "to reflect changes to the tree, because export"
|
||||
, "tracking is not enabled. "
|
||||
, "(Set " ++ gitconfig ++ " to enable it.)"
|
||||
]
|
||||
_ -> noop
|
||||
Just b -> showLongNote $ unwords
|
||||
Just b -> showLongNote $ UnquotedString $ unwords
|
||||
[ notupdating
|
||||
, "because " ++ Git.fromRef b ++ " does not exist."
|
||||
, "(As configured by " ++ gitconfig ++ ")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue