summaryrefslogtreecommitdiff
path: root/Utility.hs
Commit message (Collapse)AuthorAge
* factor out firstM and anyMGravatar Joey Hess2011-08-28
| | | | Control.Monad.Loops has these, but has no Debian package yet.
* The wget command will now be used in preference to curl, if available.Gravatar Joey Hess2011-08-27
| | | | Got tired of curl's various ugly progress bars.
* split groups of related functions out of UtilityGravatar Joey Hess2011-08-22
|
* tweakGravatar Joey Hess2011-08-21
|
* add withTempFileGravatar Joey Hess2011-08-16
| | | | | | | 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.
* typoGravatar Joey Hess2011-07-16
|
* hlint tweaksGravatar Joey Hess2011-07-15
| | | | Did all sources except Remotes/* and Command/*
* use a more specific type for executeFileGravatar Joey Hess2011-07-04
| | | | | | Apparently the generic -> IO a type fails with some version of GHC. Possibly due to System.Posix.Process.executeFile having a more specific type.
* generalized safeWriteFile to viaTmpGravatar Joey Hess2011-06-30
|
* Add --debug option. Closes: #627499Gravatar Joey Hess2011-05-21
| | | | | | | 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.
* more standard names for whenM and unlessM operatorsGravatar Joey Hess2011-05-17
| | | | | | | 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 $ ...
* add whenM and unlessMGravatar Joey Hess2011-05-17
| | | | | Just more golfing.. I am pretty sure something in a library somewhere can do this, but I have been unable to find it.
* more pointless monadic golfingGravatar Joey Hess2011-05-16
|
* simplified a bunch of Maybe handlingGravatar Joey Hess2011-05-15
|
* add boolSystemEnvGravatar Joey Hess2011-04-28
|
* rsync special remoteGravatar Joey Hess2011-04-27
| | | | | | | | | 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.
* generalized relPathDirTo functionsGravatar Joey Hess2011-04-25
|
* refactorGravatar Joey Hess2011-04-17
|
* store annex.uuid in bup reposGravatar Joey Hess2011-04-09
|
* add loggedKeysGravatar Joey Hess2011-04-02
|
* Fix space leak in fsck and drop commands.Gravatar Joey Hess2011-03-22
| | | | | | | | | | | | | | 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.
* renameGravatar Joey Hess2011-02-28
|
* use ShellParam typeGravatar Joey Hess2011-02-28
| | | | | So, I have a type checked safe handling of filenames starting with dashes, throughout the code.
* add ShellParam type, for type-checked shell paramsGravatar Joey Hess2011-02-28
|
* Support filenames that start with a dash; when such a file is passed to a ↵Gravatar Joey Hess2011-02-25
| | | | utility it will be escaped to avoid it being interpreted as an option.
* hello, liftMGravatar Joey Hess2011-02-19
|
* cleanup last changeGravatar Joey Hess2011-01-31
|
* add more testsGravatar Joey Hess2011-01-04
|
* git-annex-shell can now be used as a login shellGravatar Joey Hess2010-12-31
|
* Add trust and untrust subcommands, to allow configuring remotes that are ↵Gravatar Joey Hess2010-12-28
| | | | trusted to retain files without explicit checking.
* Add uninit subcommand. Closes: #605749Gravatar Joey Hess2010-12-03
|
* Bugfix: Always correctly handle gitattributes when in a subdirectory of the ↵Gravatar Joey Hess2010-11-28
| | | | repository.
* In .gitattributes, the git-annex-numcopies attribute can be used to control ↵Gravatar Joey Hess2010-11-28
| | | | the number of copies to retain of different types of files.
* finished hlintingGravatar Joey Hess2010-11-22
|
* simplifiyGravatar Joey Hess2010-11-17
|
* add unsetFileModeGravatar Joey Hess2010-11-08
|
* tweakGravatar Joey Hess2010-10-31
|
* more accurate typeGravatar Joey Hess2010-10-31
|
* more Wall cleaningGravatar Joey Hess2010-10-31
|
* another memory optimisationGravatar Joey Hess2010-10-31
| | | | | | | | | 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.
* really fix SIGINT handlingGravatar Joey Hess2010-10-29
| | | | | Have to completly avoid SIGINT being trapped, which means going very low-level.
* Fix SIGINT handling.Gravatar Joey Hess2010-10-29
|
* copyright statements0.02Gravatar Joey Hess2010-10-27
|
* fix perl refugee codeGravatar Joey Hess2010-10-22
|
* add shellEscapeGravatar Joey Hess2010-10-22
| | | | | | ugly, but sometimes necessary There is a haskell shell-escape module, but it is not packaged in Debian
* add boolSystemGravatar Joey Hess2010-10-19
|
* now finds files in git or not depending on what command wantsGravatar Joey Hess2010-10-16
|
* basic recursion done; skipping git stuff still todoGravatar Joey Hess2010-10-16
|
* use some library functionsGravatar Joey Hess2010-10-15
| | | | retry with a bugfix
* Revert "use some library functions"Gravatar Joey Hess2010-10-15
| | | | | | This reverts commit 8e742bd89e6bd3d83c44847c0455043809c64c89. meh?