Joey Hess
02f6d9b33a
convert FindRef
2015-07-10 20:38:11 -04:00
Joey Hess
c94e219fea
convert Whereis
2015-07-10 16:32:33 -04:00
Joey Hess
8eb0a440b9
convert Expire
2015-07-10 16:26:23 -04:00
Joey Hess
decfababe9
convert DropUnused
2015-07-10 16:15:31 -04:00
Joey Hess
160d4b9fe0
convert Unused, and remove some dead code for old style option parsing
2015-07-10 16:05:56 -04:00
Joey Hess
4064dd4c82
convert version command, and make --raw work when not in a git repo
2015-07-10 13:49:46 -04:00
Joey Hess
6a4f2087be
finished converting all the main options
2015-07-10 13:23:06 -04:00
Joey Hess
5cc882a35e
implement withGlobalOptions, and convert Find
2015-07-10 12:47:35 -04:00
Joey Hess
820b92abab
wip
...
Current status:
* building again, but several commands are commented out
* still need to implement global options, file matching options, etc
2015-07-09 19:03:24 -04:00
Joey Hess
a7f58634b8
wip
2015-07-09 16:05:45 -04:00
Joey Hess
8ad927dbc6
converted copy and move
...
Got a little tricky..
2015-07-09 15:23:14 -04:00
Joey Hess
032e6485fa
use Alternative for parsing KeyOptions
2015-07-09 12:44:03 -04:00
Joey Hess
94e703e8b8
use Alternative when parsing mutually exclusive fsck options
2015-07-09 12:26:25 -04:00
Joey Hess
8a9d2a6e9d
let optparse-applicative handle the usage display when run w/o command or bad command
...
Still generating the list of commands myself, to get it sorted into
sections and with short synopses.
2015-07-09 11:52:47 -04:00
Joey Hess
c1c64ec76c
formatting
2015-07-09 10:42:28 -04:00
Joey Hess
d8d1499229
finalOpt is the same as optional
2015-07-09 01:02:27 -04:00
Joey Hess
60806dd191
wip
2015-07-08 17:59:06 -04:00
Joey Hess
6a88c7c101
converted fsck's options to optparse-applicative
...
Global options and seeking and key options are still to be done.
2015-07-08 16:58:54 -04:00
Joey Hess
7d9072d1db
remove git-annex help options display
...
Common options will be displayed in the --help for a command by
optparse-applicative.
2015-07-08 15:41:54 -04:00
Joey Hess
92d8f80bff
support cmdnorepo actions, also using getopt-applicative there
2015-07-08 15:39:05 -04:00
Joey Hess
6e5c1f8db3
convert all commands to work with optparse-applicative
...
Still no options though.
2015-07-08 15:08:02 -04:00
Joey Hess
3125da54f6
display cmdparamdesc in optparse-applicative usage messages
...
Since optparse-applicative display "FOO" as "[FOO]", the paramOptional
modifier which wrapped it in square brackets was removed from most places.
2015-07-08 13:39:11 -04:00
Joey Hess
a2ba701056
started converting to use optparse-applicative
...
This is a work in progress. It compiles and is able to do basic command
dispatch, including git autocorrection, while using optparse-applicative
for the core commandline parsing.
* Many commands are temporarily disabled before conversion.
* Options are not wired in yet.
* cmdnorepo actions don't work yet.
Also, removed the [Command] list, which was only used in one place.
2015-07-08 13:36:25 -04:00
Joey Hess
24800b1bf1
Only look at reflogs for relevant branches, not for git-annex branches
...
This speeds it up quite a bit.. May still be too slow in large repos.
2015-07-07 17:36:30 -04:00
Joey Hess
600717417f
update comment
2015-07-07 17:23:02 -04:00
Joey Hess
b11d2f5a8a
unused: --used-refspec can now be configured to look at refs in the reflog. This provides a way to not consider old versions of files to be unused after they have reached a specified age, when the old refs in the reflog expire.
...
May be slow.
2015-07-07 17:13:50 -04:00
Joey Hess
a51b98cdd5
sync: When annex.autocommit=false, avoid making any commit of local changes, while still merging with remote to the extent possible.
2015-07-07 16:36:11 -04:00
Joey Hess
81ad277a85
add: Stage symlinks the same as git add would, even if they are not a link to annexed content.
2015-07-07 16:15:30 -04:00
Joey Hess
60fc25e9d3
merge: Avoid creating the synced/master branch.
...
The branch needs to be created when merging from the remote in sync,
since we diff between it and the remote's sync branch. But git annex merge
should not be creating sync branches.
2015-07-07 15:53:27 -04:00
Joey Hess
625303226d
import: Fix failure of cross-device import on Windows.
...
As well as import, 2 other places ran "mv" manually, so changed them to use
moveFile as well.
2015-07-07 14:48:23 -04:00
Joey Hess
1529add61a
Brought back the setkey plumbing command that was removed in 2011, since we found a use case for it. Note that the command's syntax was changed for consistency.
2015-07-02 17:44:25 -04:00
Joey Hess
1f35141aff
assistant --autostart: First any daemons that are already running, which might be left over from a previous login session and so unable to use the ssh agent of a new login session.
2015-07-02 14:16:53 -04:00
Joey Hess
833cf5fff9
log: Fix reversion introduced in version 5.20150528 that broke this command.
2015-07-02 12:53:38 -04:00
Joey Hess
f77d485915
move comment
2015-06-16 19:07:14 -04:00
Joey Hess
be9d9cb5ad
avoid building unused bloomfilter when run without --all
2015-06-16 19:04:20 -04:00
Joey Hess
5b801fcad9
on second thought, sync --content --unused is probably not useful, remove
2015-06-16 19:01:06 -04:00
Joey Hess
adba0595bd
use bloom filter in second pass of sync --all --content
...
This is needed because when preferred content matches on files,
the second pass would otherwise want to drop all keys. Using a bloom filter
avoids this, and in the case of a false positive, a key will be left
undropped that preferred content would allow dropping. Chances of that
happening are a mere 1 in 1 million.
2015-06-16 18:50:13 -04:00
Joey Hess
a0a8127956
instance Hashable Key for bloomfilter
2015-06-16 18:37:41 -04:00
Joey Hess
8b74aec3ea
Increased the default annex.bloomaccuracy from 1000 to 10000000
...
This makes git annex unused use around 48 mb more memory than it did before,
but the massive increase in accuracy makes this worthwhile for all but the
smallest systems.
Also, I want to use the bloom filter for sync --all --content, to avoid
dropping files that the preferred content doesn't want, and 1/1000
false positives would be far too many in that use case, even if it were
acceptable for unused.
Actual memory use numbers:
1000: 21.06user 3.42system 0:26.40elapsed 92%CPU (0avgtext+0avgdata 501552maxresident)k
1000000: 21.41user 3.55system 0:26.84elapsed 93%CPU (0avgtext+0avgdata 549496maxresident)k
10000000: 21.84user 3.52system 0:27.89elapsed 90%CPU (0avgtext+0avgdata 549920maxresident)k
Based on these numbers, 10 million seemed a better pick than 1 million.
2015-06-16 18:12:00 -04:00
Joey Hess
29c03145e6
sync: Add support for --all and --unused.
2015-06-16 16:50:03 -04:00
Joey Hess
99a1113461
switch code to using associated files
2015-06-16 15:07:03 -04:00
Joey Hess
67f7f1b1cb
info: Added json output for "backend usage", "numcopies stats", "repositories containing these files", and "transfers in progress".
2015-06-16 13:50:28 -04:00
Joey Hess
829007d629
Improve url parsing to handle some urls containing illegal [] characters in their paths.
...
Ie, "https://archive.org/download/zoom-2/Zoom - Release 2 (1996)(Active Software)[!].iso"
2015-06-14 13:39:44 -04:00
Joey Hess
5123a512d6
add a hint about marking a key dead
2015-06-09 15:12:40 -04:00
Joey Hess
f8ab3bc449
dead --key: Can be used to mark a key as dead.
2015-06-09 14:52:05 -04:00
Joey Hess
6eefc5db65
fsck: Ignore keys that are known to be dead when running in --all mode or a in a bare repo. Otherwise, still reports files with lost contents, even if the content is dead.
2015-06-09 14:08:57 -04:00
Joey Hess
de3bd11a2c
import --clean-duplicates: Fix bug that didn't count local or trusted repo's copy of a file as one of the necessary copies to allow removing it from the import location.
2015-06-03 13:15:38 -04:00
Joey Hess
d28e8fbfd5
get --incomplete: New option to resume any interrupted downloads.
2015-06-02 14:20:38 -04:00
Joey Hess
eb33569f9d
remove Params constructor from Utility.SafeCommand
...
This removes a bit of complexity, and should make things faster
(avoids tokenizing Params string), and probably involve less garbage
collection.
In a few places, it was useful to use Params to avoid needing a list,
but that is easily avoided.
Problems noticed while doing this conversion:
* Some uses of Params "oneword" which was entirely unnecessary
overhead.
* A few places that built up a list of parameters with ++
and then used Params to split it!
Test suite passes.
2015-06-01 13:52:23 -04:00
Joey Hess
36b9c9ca5f
fromkey, registerurl: Improve handling of urls that happen to also be parsable as strange keys.
2015-05-30 02:08:49 -04:00