| Commit message (Collapse) | Author | Age |
|
|
|
| |
Control.Monad.Loops has these, but has no Debian package yet.
|
|
|
|
| |
Got tired of curl's various ugly progress bars.
|
| |
|
| |
|
|
|
|
|
|
|
| |
This is essentially the same as withSystemTempFile from System.IO.Temp,
but that library is not packaged for Debian, and may not be widely used.
I see various other withTempFile implementations here and there, none canonical.
Sigh.
|
| |
|
|
|
|
| |
Did all sources except Remotes/* and Command/*
|
|
|
|
|
|
| |
Apparently the generic -> IO a type fails with some version of GHC.
Possibly due to System.Posix.Process.executeFile having a more specific
type.
|
| |
|
|
|
|
|
|
|
| |
This takes advantage of the debug logging done by missingh, and I added
my own debug messages for executeFile calls. There are still some other
low-level ways git-annex runs stuff that are not shown by debugging,
but this gets most of it easily.
|
|
|
|
|
|
|
| |
These are defined in ifelse, but it's not currently available and I don't
want to pull in a library for 6 lines of code anyhow.
Also, ifelse sets the fixity to 1, which does not allow >>? error $ ...
|
|
|
|
|
| |
Just more golfing.. I am pretty sure something in a library somewhere can
do this, but I have been unable to find it.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Fully tested and working, including resuming and encryption. (Though not
resuming when sending *with* encryption; gpg doesn't produce identical
output each time.)
Uses same layout as the directory special remote and the .git/annex/objects/
directory.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The space leak was somehow caused by this line:
absfiles <- mapM absPath files
I confess, I don't quite understand why this caused bad buffering,
but apparently the whole pipeline from git-ls-files backed up at that
point.
Happily, rewriting the code to only get the cwd once and use a pure
function to calculate absfiles clears it up, and should be a little more
efficient in syscalls too.
|
| |
|
|
|
|
|
| |
So, I have a type checked safe handling of filenames starting with dashes,
throughout the code.
|
| |
|
|
|
|
| |
utility it will be escaped to avoid it being interpreted as an option.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
trusted to retain files without explicit checking.
|
| |
|
|
|
|
| |
repository.
|
|
|
|
| |
the number of copies to retain of different types of files.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
This time memory leaked if lots of UUIDs needed to be pretty-printed, as in
a get or drop of many files. Essentially the same strict read buffering
problem that affected the LocationLog underneath though.
uuidMap really could stand to be cached, as the uuid log is read many times
in this case. But it is a fairly edge case.
|
|
|
|
|
| |
Have to completly avoid SIGINT being trapped, which means going very
low-level.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
ugly, but sometimes necessary
There is a haskell shell-escape module, but it is not packaged in Debian
|
| |
|
| |
|
| |
|
|
|
|
| |
retry with a bugfix
|
|
|
|
|
|
| |
This reverts commit 8e742bd89e6bd3d83c44847c0455043809c64c89.
meh?
|