diff options
author | Joey Hess <joey@kitenet.net> | 2012-01-07 18:13:12 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-01-07 18:18:09 -0400 |
commit | a35278430ae2dd3ae2f0c5be291e49077bcac534 (patch) | |
tree | 193e1eb496b64625dd0f4269cd8341075c4e7c61 /Seek.hs | |
parent | 2f0c3befbd3c04fab474a8cec30f830e08828006 (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.hs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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." |