| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This includes a generic JSONStream library built on top of Text.JSON
(somewhat hackishly).
It would be possible to stream out a single json document describing
all actions, but it's probably better for consumers if they can expect
one json document per line, so I did it that way instead.
Output from external programs used for transferring files is not
currently hidden when outputting json, which probably makes it not very
useful there. This may be dealt with if there is demand for json
output for --get or --move to be parsable.
The version, status, and find subcommands have hand-crafted output and
don't do json. The whereis subcommand needs to be modified to produce
useful json.
|
|
|
|
| |
This will allow adding other styles of output.
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Using a single strictness annotation, in just the right place.
Tried several others, none of which helped and some of which potentially
hurt. This is only the second time I've really had to deal with this in
a year of using haskell, which is, I suppose not that bad.
|
| | |
|
|/
|
|
|
|
|
|
| |
Statting files returned by dirContents to see if they exist and are regular
files seems pretty useless. This code was originally part of fsck, and
perhaps the idea then was to avoid things returned by dirContents that were
not files. But it's certianly not needed in the current use cases for
getKeysPresent.
|
|\ |
|
| | |
|
| | |
|
|/ |
|
| |
|
|
|
|
| |
developed a patch for git, we'll see if they like it..
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Backends are now only used to generate keys (and check them); they
are not arbitrary key-value stores for data, because it turned out such
a store is better modeled as a special remote. Updated docs to not
imply backends do more than they do now.
Sometimes I'm tempted to rename "backend" to "keytype" or something,
which would really be more clear. But it would be an annoying transition
for users, with annex.backends etc.
|
|
|
|
| |
Control.Monad.Loops has these, but has no Debian package yet.
|
| |
|
|
|
|
| |
Got tired of curl's various ugly progress bars.
|
| |
|
|\ |
|
| | |
|
|/ |
|
|
|
|
| |
first. Closes: #638998
|
| |
|
|
|
|
| |
fmap = liftM
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
I'd rather use wget really, but as git-annex uses libcurl elsewhere, it
seems best to stick with curl. And making this configurable seems
overboard.
|
| |
|
| |
|
|
|
|
|
| |
Had forgotten to keep several old versions of functions needed during this
upgrade.
|
|
|
|
| |
the liftM on its own can lift all the way into IO.
|
|
|
|
|
|
|
|
|
| |
Was a type alias; using newtype has the benefit that type errors will
show "Annex foo" rather than two lines of internal type nonsense. Yay!
There should be no other effects to size or runtime.
I've tried to do this at least twice before (each time I read RWH chapter 10);
finally understood how to this time.. sorta.
|
| |
|
| |
|
|
|
|
|
|
| |
of a remote based on the output of a shell command.
Also avoided crashing if the user specified cost value cannot be parsed.
|
| |
|
| |
|
|
|
|
| |
Avoid running external command if annex.version is set.
|
| |
|
|
|
|
| |
This auto-generates a uuid if the local repo does not already have one.
|
|
|
|
|
| |
This makes it initialize the repository with a uuid, and list the uuid,
allowing automatic setup of bare repositories when git-annex is used.
|