Joey Hess
b327227ba5
better limiting of start actions to only run whenAnnexed
...
Mostly only refactoring, but this does remove one redundant stat of the
symlink by copy.
2011-11-10 23:45:14 -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
1a29b5b52e
reorganize log modules
...
no code changes
2011-10-15 16:21:08 -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
9fe3c6d211
clean up params in usage display
2011-09-15 14:33:37 -04:00
Joey Hess
11994ebb3d
tweak
2011-09-14 15:33:21 -04:00
Joey Hess
e296da4bfe
more newline fixes
...
Adds a missing newline when a longnote is followed by a endresult.
Multiple longnotes in a row will now be separated by a blank line, which
could be a bug or a feature depending on taste.
Removed several places where newlines were explicitly displayed after
longnotes.
2011-09-09 01:45:41 -04:00
Joey Hess
3623d831d1
refactor
2011-09-06 17:45:47 -04:00
Joey Hess
6f98fd5391
whereis: Show untrusted locations separately and do not include in location count.
2011-09-06 16:59:53 -04:00
Joey Hess
5bc32c7f34
add json formatted list of remotes
...
Wherever a list of remotes is shown, --json now enables a json formatted
list.
2011-09-01 16:02:01 -04:00
Joey Hess
00153eed48
unify elipsis handling
...
And add a simple dots-based progress display, currently only used in v2
upgrade.
2011-07-19 14:07:23 -04:00
Joey Hess
6c396a256c
finished hlint pass
2011-07-15 12:47:14 -04:00
Joey Hess
cdbcd6f495
add web special remote
...
Generalized LocationLog to PresenceLog, and use a presence log to record
urls for the web special remote.
2011-07-01 15:30:42 -04:00
Joey Hess
1870186632
fixed logFile
2011-06-22 16:17:16 -04:00
Joey Hess
d3f0106f2e
move LocationLog into Annex monad from IO
...
It will need to run in Annex so it can use Branch
2011-06-22 14:27:50 -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
ef92bd2b0b
add copy count
2011-03-05 17:41:36 -04:00
Joey Hess
0de3005c64
whereis: New subcommand to show where a file's content has gotten to.
2011-03-05 17:23:55 -04:00