2017-12-31 20:08:31 +00:00
|
|
|
{-# LANGUAGE CPP #-}
|
|
|
|
|
2016-01-20 20:36:33 +00:00
|
|
|
module Annex.Common (module X) where
|
2011-10-04 02:24:57 +00:00
|
|
|
|
2011-11-11 05:52:58 +00:00
|
|
|
import Common as X
|
|
|
|
import Types as X
|
2017-02-24 17:42:30 +00:00
|
|
|
import Key as X
|
2016-01-20 20:36:33 +00:00
|
|
|
import Types.UUID as X
|
2022-08-11 20:57:44 +00:00
|
|
|
import Annex as X (gitRepo, inRepo, fromRepo, calcRepo, calcRepo')
|
2016-01-20 20:36:33 +00:00
|
|
|
import Annex.Locations as X
|
2021-04-06 19:41:24 +00:00
|
|
|
import Annex.Debug as X (fastDebug, debug)
|
2011-11-11 05:52:58 +00:00
|
|
|
import Messages as X
|
filter out control characters in warning messages
Converted warning and similar to use StringContainingQuotedPath. Most
warnings are static strings, some do refer to filepaths that need to be
quoted, and others don't need quoting.
Note that, since quote filters out control characters of even
UnquotedString, this makes all warnings safe, even when an attacker
sneaks in a control character in some other way.
When json is being output, no quoting is done, since json gets its own
quoting.
This does, as a side effect, make warning messages in json output not
be indented. The indentation is only needed to offset warning messages
underneath the display of the file they apply to, so that's ok.
Sponsored-by: Brett Eisenberg on Patreon
2023-04-10 18:47:32 +00:00
|
|
|
import Git.Filename as X
|
2017-12-31 20:08:31 +00:00
|
|
|
#ifndef mingw32_HOST_OS
|
|
|
|
import System.Posix.IO as X hiding (createPipe)
|
|
|
|
#endif
|