fix assist to commit
This commit is contained in:
parent
9ec5d7fb05
commit
9619f562f4
2 changed files with 9 additions and 11 deletions
|
@ -34,10 +34,4 @@ myseek o = startConcurrency transferStages $ do
|
||||||
}
|
}
|
||||||
|
|
||||||
Command.Sync.prepMerge
|
Command.Sync.prepMerge
|
||||||
Command.Sync.seek' o'
|
Command.Sync.seek' o
|
||||||
where
|
|
||||||
o'
|
|
||||||
| Command.Sync.contentOption o == Nothing
|
|
||||||
&& Command.Sync.noContentOption o == Nothing =
|
|
||||||
o { Command.Sync.contentOption = Just True }
|
|
||||||
| otherwise = o
|
|
||||||
|
|
|
@ -152,10 +152,14 @@ optParser mode desc = SyncOptions
|
||||||
( long "not-only-annex"
|
( long "not-only-annex"
|
||||||
<> help "operate on git branches as well as annex"
|
<> help "operate on git branches as well as annex"
|
||||||
)
|
)
|
||||||
<*> unlessmode [SyncMode] False (switch
|
<*> case mode of
|
||||||
( long "commit"
|
SyncMode -> switch
|
||||||
<> help "commit changes to git"
|
( long "commit"
|
||||||
))
|
<> help "commit changes to git"
|
||||||
|
)
|
||||||
|
PushMode -> pure False
|
||||||
|
PullMode -> pure False
|
||||||
|
AssistMode -> pure True
|
||||||
<*> unlessmode [SyncMode] True (switch
|
<*> unlessmode [SyncMode] True (switch
|
||||||
( long "no-commit"
|
( long "no-commit"
|
||||||
<> help "avoid git commit"
|
<> help "avoid git commit"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue