log: Added --all option.
This commit is contained in:
parent
154c939830
commit
c4d011bf3e
6 changed files with 171 additions and 63 deletions
|
@ -19,6 +19,7 @@ module Logs.Location (
|
|||
logChange,
|
||||
loggedLocations,
|
||||
loggedLocationsHistorical,
|
||||
loggedLocationsRef,
|
||||
isKnownKey,
|
||||
checkDead,
|
||||
setDead,
|
||||
|
@ -31,10 +32,12 @@ import qualified Annex.Branch
|
|||
import Logs
|
||||
import Logs.Presence
|
||||
import Annex.UUID
|
||||
import Git.Types (RefDate)
|
||||
import Annex.CatFile
|
||||
import Git.Types (RefDate, Ref)
|
||||
import qualified Annex
|
||||
|
||||
import Data.Time.Clock
|
||||
import qualified Data.ByteString.Lazy.Char8 as L
|
||||
|
||||
{- Log a change in the presence of a key's value in current repository. -}
|
||||
logStatus :: Key -> LogStatus -> Annex ()
|
||||
|
@ -61,6 +64,10 @@ loggedLocations = getLoggedLocations currentLogInfo
|
|||
loggedLocationsHistorical :: RefDate -> Key -> Annex [UUID]
|
||||
loggedLocationsHistorical = getLoggedLocations . historicalLogInfo
|
||||
|
||||
{- Gets the locations contained in a git ref. -}
|
||||
loggedLocationsRef :: Ref -> Annex [UUID]
|
||||
loggedLocationsRef ref = map toUUID . getLog . L.unpack <$> catObject ref
|
||||
|
||||
getLoggedLocations :: (FilePath -> Annex [String]) -> Key -> Annex [UUID]
|
||||
getLoggedLocations getter key = do
|
||||
config <- Annex.getGitConfig
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue