2011-11-11 05:52:58 +00:00
|
|
|
module Common (module X) where
|
2011-10-04 02:24:57 +00:00
|
|
|
|
2013-04-23 00:24:53 +00:00
|
|
|
import Control.Monad as X
|
2012-01-24 19:28:13 +00:00
|
|
|
import Control.Monad.IfElse as X
|
2011-11-11 05:52:58 +00:00
|
|
|
import Control.Applicative as X
|
2016-01-12 17:01:44 +00:00
|
|
|
import Control.Monad.IO.Class as X (liftIO)
|
2011-10-04 02:24:57 +00:00
|
|
|
|
2011-11-11 05:52:58 +00:00
|
|
|
import Data.Maybe as X
|
2011-12-15 22:11:42 +00:00
|
|
|
import Data.List as X hiding (head, tail, init, last)
|
2014-03-22 14:42:38 +00:00
|
|
|
import Data.Monoid as X
|
2015-01-28 20:11:28 +00:00
|
|
|
import Data.Default as X
|
2011-10-04 02:24:57 +00:00
|
|
|
|
2011-11-11 05:52:58 +00:00
|
|
|
import System.FilePath as X
|
|
|
|
import System.IO as X hiding (FilePath)
|
|
|
|
import System.Exit as X
|
2023-03-01 19:55:58 +00:00
|
|
|
import System.PosixCompat.Files as X (FileStatus)
|
2011-10-04 02:24:57 +00:00
|
|
|
|
2011-11-11 05:52:58 +00:00
|
|
|
import Utility.Misc as X
|
2012-02-03 20:47:24 +00:00
|
|
|
import Utility.Exception as X
|
2018-11-19 19:00:24 +00:00
|
|
|
import Utility.DebugLocks as X
|
2011-11-11 05:52:58 +00:00
|
|
|
import Utility.SafeCommand as X
|
2020-11-10 00:07:31 +00:00
|
|
|
import Utility.ShellEscape as X
|
2012-07-18 19:30:26 +00:00
|
|
|
import Utility.Process as X
|
2011-11-11 05:52:58 +00:00
|
|
|
import Utility.Path as X
|
2020-10-29 16:02:46 +00:00
|
|
|
import Utility.Path.AbsRel as X
|
support .git/annex on a different disk than the rest of the repo
The only fully supported thing is to have the main repository on one disk,
and .git/annex on another. Only commands that move data in/out of the annex
will need to copy it across devices.
There is only partial support for putting arbitrary subdirectories of
.git/annex on different devices. For one thing, but this can require more
copies to be done. For example, when .git/annex/tmp is on one device, and
.git/annex/journal on another, every journal write involves a call to
mv(1). Also, there are a few places that make hard links between various
subdirectories of .git/annex with createLink, that are not handled.
In the common case without cross-device, the new moveFile is actually
faster than renameFile, avoiding an unncessary stat to check that a file
(not a directory) is being moved. Of course if a cross-device move is
needed, it is as slow as mv(1) of the data.
2011-11-28 19:26:27 +00:00
|
|
|
import Utility.Directory as X
|
2020-11-05 22:45:37 +00:00
|
|
|
import Utility.MoveFile as X
|
2011-12-03 13:10:23 +00:00
|
|
|
import Utility.Monad as X
|
2013-09-27 23:52:36 +00:00
|
|
|
import Utility.Data as X
|
2012-06-29 14:00:05 +00:00
|
|
|
import Utility.Applicative as X
|
2015-01-20 20:58:48 +00:00
|
|
|
import Utility.FileSize as X
|
2014-04-14 17:25:49 +00:00
|
|
|
import Utility.Network as X
|
2017-05-16 03:32:17 +00:00
|
|
|
import Utility.Split as X
|
2019-01-03 15:37:02 +00:00
|
|
|
import Utility.FileSystemEncoding as X
|
2011-12-15 22:11:42 +00:00
|
|
|
|
2011-12-20 15:01:50 +00:00
|
|
|
import Utility.PartialPrelude as X
|