Makes much more clear why ActionItemOther is being passed "git-annex".
import Command
import qualified Annex.Branch
import qualified Git
+import Git.Types
cmd :: Command
cmd = command "commit" SectionPlumbing
seek = withNothing (commandAction start)
start :: CommandStart
-start = starting "commit" (ActionItemOther (Just "git-annex")) (SeekInput []) $ do
- Annex.Branch.commit =<< Annex.Branch.commitMessage
- _ <- runhook <=< inRepo $ Git.hookPath "annex-content"
- next $ return True
+start = starting "commit" ai si $ do
+ Annex.Branch.commit =<< Annex.Branch.commitMessage
+ _ <- runhook <=< inRepo $ Git.hookPath "annex-content"
+ next $ return True
where
runhook (Just hook) = liftIO $ boolSystem hook []
runhook Nothing = return True
+ ai = ActionItemOther (Just (fromRef Annex.Branch.name))
+ si = SeekInput []
import Logs.Transitions
import qualified Annex
import Annex.VectorClock
+import Git.Types
cmd :: Command
cmd = command "forget" SectionMaintenance
else basets
perform ts =<< Annex.getState Annex.force
where
- ai = ActionItemOther (Just "git-annex")
+ ai = ActionItemOther (Just (fromRef Branch.name))
si = SeekInput []
perform :: Transitions -> Bool -> CommandPerform
import qualified Git.Branch
import Annex.CurrentBranch
import Command.Sync (prepMerge, mergeLocal, mergeConfig, merge, SyncOptions(..))
+import Git.Types
cmd :: Command
cmd = command "merge" SectionMaintenance
Annex.Branch.commit =<< Annex.Branch.commitMessage
next $ return True
where
- ai = ActionItemOther (Just "git-annex")
+ ai = ActionItemOther (Just (fromRef Annex.Branch.name))
si = SeekInput []
mergeSyncedBranch :: CommandStart