Joey Hess
88ff9e82fc
factor out a little more
2010-12-30 15:44:15 -04:00
Joey Hess
346c7a0257
Avoid multiple calls to git ls-files when passed eg, "*".
2010-12-23 21:58:58 -04:00
Joey Hess
c4a357d5d1
Bugfix to git annex unused in a repository with nothing yet annexed.
2010-12-20 14:57:43 -04:00
Joey Hess
71d60eb87a
robustness fix
...
don't crash if an object directory does not contain a file
2010-12-02 21:26:37 -04:00
Joey Hess
2fba1ba40d
Avoid deleting temp files when rsync fails.
2010-12-02 17:51:02 -04:00
Joey Hess
eeae910242
finished hlinting
2010-11-22 17:51:55 -04:00
Joey Hess
57adb0347b
hlint tweaks
...
Remotes.hs next, and also Backend/* and Command/*
2010-11-22 15:46:57 -04:00
Joey Hess
0e55d6a907
move stuff out of Core
2010-11-14 14:44:24 -04:00
Joey Hess
aec34ee1bd
tweak
2010-11-13 15:42:56 -04:00
Joey Hess
dd573e7010
fsck bugfixes
2010-11-13 15:40:12 -04:00
Joey Hess
5fa25a812a
fsck improvements
...
* fsck: Check if annex.numcopies is satisfied.
* fsck: Verify the sha1 of files when the SHA1 backend is used.
* fsck: Verify the size of files when the WORM backend is used.
* fsck: Allow specifying individual files to fsk if fscking everything
is not desired.
* fsck: Fix bug, introduced in 0.04, in detection of unused data.
2010-11-13 14:59:27 -04:00
Joey Hess
f2c7a6e73d
got rid of several more calls to git when finding unlocked files
2010-11-11 18:21:54 -04:00
Joey Hess
ce62f5abf1
rework command dispatching for add and pre-commit
...
Both subcommands do two different operations on different sets of files, so
allowing a subcommand to perform a list of operations cleans things up.
2010-11-11 17:58:55 -04:00
Joey Hess
fb824f7eb0
use -- before filenames when running git add, git rm, etc
2010-11-10 14:15:21 -04:00
Joey Hess
43412419ea
bugfix
...
The object's directory might exist if the backend picked the same key
as was already present. That could happen, for example, if the sha1 is the
same.
Note that I chose to go ahead and replace the old content with the new.
We don't know if they are the same (even with sha1, their timestamp or
perms could differ), so have to assume the newer one is preffered. Although
it won't propigate to other annexes, so it had better not be significantly
different!
2010-11-10 13:08:29 -04:00
Joey Hess
8d5374f4a3
tweak
2010-11-09 15:04:13 -04:00
Joey Hess
1d32d902c9
Annexed file contents are now made unwritable and put in unwriteable directories, to avoid them accidentially being removed or modified. (Thanks Josh Triplett for the idea.)
2010-11-08 19:26:37 -04:00
Joey Hess
6395b790ce
Reorganised the layout of .git/annex/
2010-11-08 17:00:34 -04:00
Joey Hess
070e8530c1
refactoring, no code changes really
2010-11-08 15:15:21 -04:00
Joey Hess
ab4de45491
Add annex.version, which will be used to automate upgrades.
2010-11-08 14:39:12 -04:00
Joey Hess
a3519c365f
hlinted a few files
2010-11-06 17:07:11 -04:00
Joey Hess
4da551827f
trim
2010-11-01 03:12:28 -04:00
Joey Hess
0655ae4b8a
move
2010-11-01 03:01:58 -04:00
Joey Hess
f3e4633e35
refactor inAnnex remote checking to Remotes
2010-10-31 23:21:16 -04:00
Joey Hess
fd6611f955
Fix crash on unknown symlinks.
2010-10-31 18:04:34 -04:00
Joey Hess
cf4c926f2e
more Wall cleaning
2010-10-31 16:00:32 -04:00
Joey Hess
aa05859410
more Wall cleaning
2010-10-31 15:38:47 -04:00
Joey Hess
96fa6b89ac
more Wall cleaning
2010-10-31 15:12:56 -04:00
Joey Hess
7c0777c60d
avoid unnessary newlines before progress in quiet mode
2010-10-29 14:10:55 -04:00
Joey Hess
045b051ec1
got rid of almost all 'return ()'
2010-10-28 12:40:05 -04:00
Joey Hess
833d4b342e
copyright statements
2010-10-27 16:53:54 -04:00
Joey Hess
563484e135
pre-commit hook
2010-10-27 14:33:44 -04:00
Joey Hess
3281a1cb19
don't try to set up .gitattributes every time; only do it on git annex init
2010-10-27 13:55:28 -04:00
Joey Hess
5b4fa4aeca
use xargs
2010-10-27 13:12:02 -04:00
Joey Hess
24ee4439d4
use git command queue
2010-10-26 16:15:29 -04:00
Joey Hess
ef26076a5a
add git queue to Annex monad
...
not used anywhere just yet..
2010-10-26 15:59:50 -04:00
Joey Hess
fec9f611df
add setkey subcommand
...
And finished implementing move --to
2010-10-25 20:19:08 -04:00
Joey Hess
e87287c11b
fix failure propigation
2010-10-25 19:17:11 -04:00
Joey Hess
d0a9cdadaf
add dropkey subcommand and --quiet
...
Needed for better git annex move --from
2010-10-25 18:32:29 -04:00
Joey Hess
7fe4bfa20f
split commands into 3 phases
...
I feel like I just leveled up in Haskell.
2010-10-25 15:44:27 -04:00
Joey Hess
e29210d1dd
update
2010-10-25 14:10:38 -04:00
Joey Hess
4c7248c779
factored out getViaTmp
2010-10-23 14:26:38 -04:00
Joey Hess
03bcb8d8b3
better message display
2010-10-23 13:59:47 -04:00
Joey Hess
9dfbf40d1a
reorg remote key presense checking code
...
Also, it now checks if a key is inAnnex, ie, cached in .git/annex, not if
it is present in a remote. For the File Backend, these are equivilant, not
so for other backends.
2010-10-23 13:18:47 -04:00
Joey Hess
19fde4960d
new fromkey subcommand, for registering urls, etc
...
had to redo Annex monad's flag storage
2010-10-21 16:30:16 -04:00
Joey Hess
731cabbe3d
newlines before failed message
...
needed if a long message was shown
2010-10-19 14:15:53 -04:00
Joey Hess
d23fc22f0e
less verbose failures seem better here
2010-10-19 12:55:40 -04:00
Joey Hess
2ea589e117
don't throw a fatal error
2010-10-19 12:53:51 -04:00
Joey Hess
4b1086cc7d
experimentally, removing all actual git committing
...
Idea is the user will commit when ready, just stage everything.
2010-10-18 01:52:06 -04:00
Joey Hess
335c06171a
commit logs at end; faster
2010-10-17 18:52:09 -04:00