Joey Hess
e97d13e29b
Add copy subcommand.
2010-11-27 17:02:53 -04:00
Joey Hess
eeae910242
finished hlinting
2010-11-22 17:51:55 -04:00
Joey Hess
161823d6ea
Only use cp -a if it is supported, falling back to cp -p or plain cp.
...
* cp --reflink=auto is used if supported, and will make git annex unlock
much faster on filesystems like btrfs that support copy of write.
2010-11-18 13:49:01 -04:00
Joey Hess
0893820812
fsck: Print warnings to stderr; --quiet can now be used to only see problems.
2010-11-15 18:37:49 -04:00
Joey Hess
a5e7f5329f
fix
2010-11-15 18:24:29 -04:00
Joey Hess
11096c200f
fsck no longer runs unused
2010-11-15 18:22:50 -04:00
Joey Hess
3a4e9398a1
add
2010-11-15 18:06:21 -04:00
Joey Hess
748a7475bb
dropunused
2010-11-15 18:04:19 -04:00
Joey Hess
9dc43d2599
unused: New subcommand, finds unused data (the global part of fsck).
2010-11-15 16:35:06 -04:00
Joey Hess
0e55d6a907
move stuff out of Core
2010-11-14 14:44:24 -04:00
Joey Hess
a5c4dd9743
find: New subcommand.
2010-11-14 12:35:05 -04:00
Joey Hess
19ee56559a
better fsck file handling
2010-11-13 16:15:45 -04:00
Joey Hess
7293ba2940
fsck even files not in backend
2010-11-13 16:12:02 -04:00
Joey Hess
498c8e8544
fsck: avoid global checks if files specified
2010-11-13 16:03:25 -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
da0de293d1
refactor param seeking
2010-11-11 18:54:52 -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
dffe949963
Optimize both pre-commit and lock subcommands.
...
isLocked was doing the expensive check before the cheap one. Let's not
fork git diff twice per file when committing, especially.
git diff is still run more than strictly necessary (ie, more than once)
if multiple unlocked files are being committed. But much better now.
2010-11-11 14:54:29 -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
31101a8b27
use new git function
2010-11-10 14:08:28 -04:00
Joey Hess
d0886a9ac7
explicity run queue to git add files
2010-11-10 13:32:46 -04:00
Joey Hess
361d28e138
Unlocked files will now automatically be added back into the annex when committed (and the updated symlink committed), by some magic in the pre-commit hook.
2010-11-10 13:01:17 -04:00
Joey Hess
2ab448276c
fix handling of staged unlocked files
2010-11-10 13:01:01 -04:00
Joey Hess
55720885ae
set write bit on unlocked file
2010-11-10 12:50:00 -04:00
Joey Hess
91c5fe71af
add
2010-11-10 10:52:43 -04:00
Joey Hess
536bc97d25
lock and unlock subcommands
2010-11-09 15:59:49 -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
50ec22e322
set version on init
2010-11-08 16:40:28 -04:00
Joey Hess
070e8530c1
refactoring, no code changes really
2010-11-08 15:15:21 -04:00
Joey Hess
009873e0eb
fsck works
2010-11-07 18:22:25 -04:00
Joey Hess
ea8ccaa3d5
rough in fsck
2010-11-07 17:26:21 -04:00
Joey Hess
016b6a59e7
add fsck subcommand (stub)
2010-11-06 17:06:59 -04:00
Joey Hess
0eae5b806c
broke subcommands out into separate modules
2010-11-02 19:04:24 -04:00