Commit graph

64 commits

Author SHA1 Message Date
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
Joey Hess
a020b0c25c atomic file retrieval from backends 2010-10-17 16:39:30 -04:00
Joey Hess
6d4fc0ca7e command output cleanup 2010-10-17 13:13:49 -04:00
Joey Hess
76ba2d0030 reorg 2010-10-17 12:08:59 -04:00
Joey Hess
ae4d20d157 bugfix 2010-10-17 11:57:39 -04:00
Joey Hess
da453ba701 bugfix: don't add files under .git-annex
That could happen if git annex add -N were used repeatedly..
2010-10-16 22:36:35 -04:00
Joey Hess
b02a3b3f5b add fix subcommand 2010-10-16 21:03:25 -04:00