Joey Hess
906258ca5e
include build flags in version info when not in a repo
2013-05-01 23:11:13 -04:00
Joey Hess
8a2d1988d3
expose Control.Monad.join
...
I think I've been looking for that function for some time.
Ie, I remember wanting to collapse Just Nothing to Nothing.
2013-04-22 20:24:53 -04:00
Joey Hess
cfd3b16fe1
add section metadata to all commands
...
Not yet used .. mindless train work.
2013-03-24 18:28:21 -04:00
Joey Hess
0155f1effa
add build flags to version output
2013-03-09 14:57:23 -04:00
Joey Hess
ebd576ebcb
where indentation
2012-11-12 01:05:04 -04:00
Joey Hess
ba0334116c
more descriptive name for oneshot
2012-09-15 20:46:38 -04:00
Joey Hess
90a8b38ac0
set oneshot mode on a per-command basis
...
Avoids ugly (and test suite failing) hack in Command.Version
2012-02-14 12:40:40 -04:00
Joey Hess
2f1f1e6b13
avoid version saving state
...
This is not the place to commit journal files.
2012-02-14 10:59:48 -04:00
Joey Hess
2bb6b02948
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.
2011-11-16 00:49:09 -04:00
Joey Hess
3d2a9f8405
cleanup
2011-10-31 17:22:55 -04:00
Joey Hess
f97c783283
clean up check selection code
...
This new approach allows filtering out checks from the default set that are
not appropriate for a command, rather than having to list every check
that is appropriate. It also reduces some boilerplate.
Haskell does not define Eq for functions, so I had to go a long way around
with each check having a unique id. Meh.
2011-10-29 15:19:05 -04:00
Joey Hess
b955238ec7
Fail if --from or --to is passed to commands that do not support them.
2011-10-27 18:56:54 -04:00
Joey Hess
5b74b130a3
refactored and generalized pre-command sanity checking
2011-10-27 16:31:35 -04:00
Joey Hess
6a6ea06cee
rename
2011-10-05 16:02:51 -04:00
Joey Hess
cfe21e85e7
rename
2011-10-04 00:59:08 -04:00
Joey Hess
8ef2095fa0
factor out common imports
...
no code changes
2011-10-03 23:29:48 -04:00
Joey Hess
35145202d2
remove command type definitions
...
These were a mistake, they make the type signatures harder to read and
less flexible. The CommandSeek, CommandStart, CommandPerform, and
CommandCleanup types were a good idea, but composing them with the
parameters expected is going too far.
2011-09-15 16:50:49 -04:00
Joey Hess
737b5d14c9
moved files around
2011-08-20 16:11:42 -04:00
Joey Hess
6c396a256c
finished hlint pass
2011-07-15 12:47:14 -04:00
Joey Hess
944c51ba26
improve version checking for v3
...
Do not set annex.version whenever any command is run. Just do it in init.
This ensures that, if a repo has annex.version=3, it has a git-annex
branch, so we don't have to run a command every time to check for the
branch.
Remove the old ad-hoc logic for v0 and v1, to simplify version checking.
2011-06-22 18:07:45 -04:00
Joey Hess
56bc3e95ca
refactor some boilerplate
2011-05-15 02:02:46 -04:00
Joey Hess
140a351fc5
avoid version check before running version and upgrade commands
...
There are two types of commands; those that access the repository and those
that don't. Sorted.
2011-03-19 18:58:49 -04:00
Joey Hess
6a2a17658c
No longer auto-upgrade to repository format 2, to avoid accidental upgrades, etc. Use git-annex upgrade when you're ready to run this version.
2011-03-19 18:33:39 -04:00
Joey Hess
828a84ba33
Add version command to show git-annex version as well as repository version information.
2011-03-19 14:33:24 -04:00