diff options
author | Joey Hess <joey@kitenet.net> | 2013-11-05 13:38:37 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-11-05 13:38:37 -0400 |
commit | e96c613c026c2d0bd6cce7210b058533d3ce972c (patch) | |
tree | a44c598f4b1047593f4c856fdd26e9ac8400556d /Git/Types.hs | |
parent | 70db4ebffa5a66ac97791d6780cb203ad6ac642f (diff) |
pass -c option on to all git commands run
The -c option now not only modifies the git configuration seen by
git-annex, but it is passed along to every git command git-annex runs.
This was easy to plumb through because gitCommandLine is already used to
construct every git command line, to add --git-dir and --work-tree
Diffstat (limited to 'Git/Types.hs')
-rw-r--r-- | Git/Types.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Git/Types.hs b/Git/Types.hs index abfb99f9f..2a33fb27d 100644 --- a/Git/Types.hs +++ b/Git/Types.hs @@ -10,6 +10,7 @@ module Git.Types where import Network.URI import qualified Data.Map as M import System.Posix.Types +import Utility.SafeCommand {- Support repositories on local disk, and repositories accessed via an URL. - @@ -38,6 +39,8 @@ data Repo = Repo , remoteName :: Maybe String -- alternate environment to use when running git commands , gitEnv :: Maybe [(String, String)] + -- global options to pass to git when running git commands + , gitGlobalOpts :: [CommandParam] } deriving (Show, Eq) {- A git ref. Can be a sha1, or a branch or tag name. -} |