Git.Queue: allow providing git common options like -c
This commit is contained in:
parent
36f691e7e5
commit
1c5fc8f047
9 changed files with 41 additions and 27 deletions
|
@ -147,7 +147,8 @@ addSmallOverridden o file = do
|
|||
addFile :: CheckGitIgnore -> RawFilePath -> Annex Bool
|
||||
addFile ci file = do
|
||||
ps <- gitAddParams ci
|
||||
Annex.Queue.addCommand "add" (ps++[Param "--"]) [fromRawFilePath file]
|
||||
Annex.Queue.addCommand [] "add" (ps++[Param "--"])
|
||||
[fromRawFilePath file]
|
||||
return True
|
||||
|
||||
start :: AddOptions -> SeekInput -> RawFilePath -> AddUnlockedMatcher -> CommandStart
|
||||
|
|
|
@ -107,5 +107,5 @@ fixSymlink file link = do
|
|||
|
||||
cleanupSymlink :: FilePath -> CommandCleanup
|
||||
cleanupSymlink file = do
|
||||
Annex.Queue.addCommand "add" [Param "--force", Param "--"] [file]
|
||||
Annex.Queue.addCommand [] "add" [Param "--force", Param "--"] [file]
|
||||
return True
|
||||
|
|
|
@ -97,7 +97,8 @@ perform key file = lookupKeyNotHidden file >>= \case
|
|||
link <- calcRepo $ gitAnnexLink file key
|
||||
createWorkTreeDirectory (parentDir file)
|
||||
liftIO $ R.createSymbolicLink link file
|
||||
Annex.Queue.addCommand "add" [Param "--"] [fromRawFilePath file]
|
||||
Annex.Queue.addCommand [] "add" [Param "--"]
|
||||
[fromRawFilePath file]
|
||||
next $ return True
|
||||
)
|
||||
Just k
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue