diff options
author | Joey Hess <joey@kitenet.net> | 2011-11-16 00:49:09 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-11-16 00:49:09 -0400 |
commit | 2bb6b02948da8a33b2edcd911fcf3c2597b0ee58 (patch) | |
tree | 631f0694c7b5a17064eb66862230ec666e3871a8 /Types | |
parent | 84784e2ca1ababf21342cba36f7e65b4c3cd303b (diff) |
When not run in a git repository, git-annex can still display a usage message, and "git annex version" even works.
Things that sound simple, but are made hard by the Annex monad being built
with the assumption that there will always be a git repo.
Diffstat (limited to 'Types')
-rw-r--r-- | Types/Command.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Types/Command.hs b/Types/Command.hs index d39876a7a..5341a4054 100644 --- a/Types/Command.hs +++ b/Types/Command.hs @@ -33,6 +33,7 @@ type CommandCleanup = Annex Bool {- A command is defined by specifying these things. -} data Command = Command { + cmdnorepo :: Maybe (IO ()), cmdcheck :: [CommandCheck], cmdname :: String, cmdparams :: String, |