summaryrefslogtreecommitdiff
path: root/Seek.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-01-07 18:13:12 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-01-07 18:18:09 -0400
commita35278430ae2dd3ae2f0c5be291e49077bcac534 (patch)
tree193e1eb496b64625dd0f4269cd8341075c4e7c61 /Seek.hs
parent2f0c3befbd3c04fab474a8cec30f830e08828006 (diff)
log: Add --gource mode, which generates output usable by gource.
As part of this, I fixed up how log was getting the descriptions of remotes.
Diffstat (limited to 'Seek.hs')
-rw-r--r--Seek.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Seek.hs b/Seek.hs
index 59a85be88..bf0770f40 100644
--- a/Seek.hs
+++ b/Seek.hs
@@ -101,6 +101,9 @@ withField :: Option -> (Maybe String -> Annex a) -> (a -> CommandSeek) -> Comman
withField option converter = withValue $
converter =<< Annex.getField (Option.name option)
+withFlag :: Option -> (Bool -> CommandSeek) -> CommandSeek
+withFlag option = withValue $ Annex.getFlag (Option.name option)
+
withNothing :: CommandStart -> CommandSeek
withNothing a [] = return [a]
withNothing _ _ = error "This command takes no parameters."