Commit graph

37 commits

Author SHA1 Message Date
Joey Hess
c1dc407941 Fix space leak in fsck and drop commands.
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.
2011-03-22 20:31:22 -04:00
Joey Hess
4cd96ad2db rename 2011-02-28 16:25:31 -04:00
Joey Hess
fcdc4797a9 use ShellParam type
So, I have a type checked safe handling of filenames starting with dashes,
throughout the code.
2011-02-28 16:18:55 -04:00
Joey Hess
7e5678bcf7 add ShellParam type, for type-checked shell params 2011-02-28 16:10:09 -04:00
Joey Hess
836e71297b Support filenames that start with a dash; when such a file is passed to a utility it will be escaped to avoid it being interpreted as an option. 2011-02-25 01:13:01 -04:00
Joey Hess
dd0f662849 hello, liftM 2011-02-19 17:00:40 -04:00
Joey Hess
27056daccd cleanup last change 2011-01-31 20:15:23 -04:00
Joey Hess
a323463726 add more tests 2011-01-04 21:27:08 -04:00
Joey Hess
5c29bb3b7c git-annex-shell can now be used as a login shell 2010-12-31 20:33:43 -04:00
Joey Hess
aa4f91b2d6 Add trust and untrust subcommands, to allow configuring remotes that are trusted to retain files without explicit checking. 2010-12-28 17:17:02 -04:00
Joey Hess
57305570eb Add uninit subcommand. Closes: #605749 2010-12-03 00:33:41 -04:00
Joey Hess
abf084f628 Bugfix: Always correctly handle gitattributes when in a subdirectory of the repository. 2010-11-28 17:17:18 -04:00
Joey Hess
653ad35a9f In .gitattributes, the git-annex-numcopies attribute can be used to control the number of copies to retain of different types of files. 2010-11-28 15:28:20 -04:00
Joey Hess
eeae910242 finished hlinting 2010-11-22 17:51:55 -04:00
Joey Hess
ab55689164 simplifiy 2010-11-17 13:46:50 -04:00
Joey Hess
40a815d873 add unsetFileMode 2010-11-08 17:44:08 -04:00
Joey Hess
c6206c4560 tweak 2010-10-31 22:22:01 -04:00
Joey Hess
d04bfceaad more accurate type 2010-10-31 22:20:07 -04:00
Joey Hess
cf4c926f2e more Wall cleaning 2010-10-31 16:00:32 -04:00
Joey Hess
6a9a9bd5a3 another memory optimisation
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.
2010-10-31 01:51:50 -04:00
Joey Hess
e3030196b6 really fix SIGINT handling
Have to completly avoid SIGINT being trapped, which means going very
low-level.
2010-10-29 13:57:22 -04:00
Joey Hess
fde01e52f3 Fix SIGINT handling. 2010-10-29 12:38:41 -04:00
Joey Hess
833d4b342e copyright statements 2010-10-27 16:53:54 -04:00
Joey Hess
f4e2dde8a8 fix perl refugee code 2010-10-22 20:47:14 -04:00
Joey Hess
91e6625eb5 add shellEscape
ugly, but sometimes necessary

There is a haskell shell-escape module, but it is not packaged in Debian
2010-10-22 14:57:02 -04:00
Joey Hess
7afac11344 add boolSystem 2010-10-19 01:45:45 -04:00
Joey Hess
e80160380a now finds files in git or not depending on what command wants 2010-10-16 14:58:35 -04:00
Joey Hess
1260adbd77 basic recursion done; skipping git stuff still todo 2010-10-16 13:38:59 -04:00
Joey Hess
23f95ac6df use some library functions
retry with a bugfix
2010-10-15 19:01:20 -04:00
Joey Hess
0989dd2694 Revert "use some library functions"
This reverts commit 8e742bd89e.

meh?
2010-10-15 18:58:26 -04:00
Joey Hess
8e742bd89e use some library functions 2010-10-15 18:24:31 -04:00
Joey Hess
e577656fea relative link fix 2010-10-15 16:09:30 -04:00
Joey Hess
77d052af3c fix parentDir to work for relative too 2010-10-13 01:49:21 -04:00
Joey Hess
ebc3fbe9ae explicit exports 2010-10-11 17:52:46 -04:00
Joey Hess
f98fa53d7f fixed close after locking 2010-10-10 11:08:40 -04:00
Joey Hess
60c672e444 strictness and handle closing 2010-10-10 02:22:35 -04:00
Joey Hess
d0e82d0b92 add 2010-10-10 00:18:10 -04:00