Added annex.allowsign option.
This commit was sponsored by Ilya Shlyakhter on Patreon.
This commit is contained in:
parent
02a8573bf2
commit
3b34d123ed
13 changed files with 97 additions and 32 deletions
18
Config/CommitMode.hs
Normal file
18
Config/CommitMode.hs
Normal file
|
@ -0,0 +1,18 @@
|
|||
{- git-annex configuration
|
||||
-
|
||||
- Copyright 2019 Joey Hess <id@joeyh.name>
|
||||
-
|
||||
- Licensed under the GNU AGPL version 3 or higher.
|
||||
-}
|
||||
|
||||
module Config.CommitMode where
|
||||
|
||||
import Annex.Common
|
||||
import qualified Annex
|
||||
import Git.Branch (CommitMode(..))
|
||||
|
||||
implicitCommitMode :: Annex CommitMode
|
||||
implicitCommitMode = go . annexAllowSign <$> Annex.getGitConfig
|
||||
where
|
||||
go True = ManualCommit
|
||||
go False = AutomaticCommit
|
Loading…
Add table
Add a link
Reference in a new issue