aboutsummaryrefslogtreecommitdiff
path: root/Assistant/BranchChange.hs
blob: c588c910a7715ed54f60bc26fb5a79749ea3da42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{- git-annex assistant git-annex branch change tracking
 -
 - Copyright 2012 Joey Hess <id@joeyh.name>
 -
 - Licensed under the GNU GPL version 3 or higher.
 -}

module Assistant.BranchChange where

import Assistant.Common
import Assistant.Types.BranchChange

import Control.Concurrent.MSampleVar

branchChanged :: Assistant ()
branchChanged = flip writeSV () <<~ (fromBranchChangeHandle . branchChangeHandle)

waitBranchChange :: Assistant ()
waitBranchChange = readSV <<~ (fromBranchChangeHandle . branchChangeHandle)