use Branch.name instead of hard coding the branch name
Makes much more clear why ActionItemOther is being passed "git-annex".
This commit is contained in:
parent
3a05d53761
commit
2a3c2b1843
3 changed files with 11 additions and 6 deletions
|
@ -12,6 +12,7 @@ import qualified Annex.Branch as Branch
|
|||
import Logs.Transitions
|
||||
import qualified Annex
|
||||
import Annex.VectorClock
|
||||
import Git.Types
|
||||
|
||||
cmd :: Command
|
||||
cmd = command "forget" SectionMaintenance
|
||||
|
@ -41,7 +42,7 @@ start o = starting "forget" ai si $ do
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue