Commit graph

24707 commits

Author SHA1 Message Date
Joey Hess
463709ab2a improve autocorrection code so that --bash-completion-script etc will work
git-annex --bash-completion-script git-annex  will now work; before
the command autocorrection would screw it up
2015-07-08 19:38:56 -04:00
Joey Hess
3332df2c52 improve --help display for commands 2015-07-08 18:31:44 -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
b59b8be737 generalize parseDuration so it can be used in the ReadM monad 2015-07-08 16:08:26 -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
4018e5f6f1 better method for running tasty's optparse as a subcommand 2015-07-08 00:39:19 -04:00
Joey Hess
0a3541a8d5 refactor 2015-07-08 00:03:28 -04:00
Joey Hess
aea694ed3f Removed support for optparse-applicative versions older than 0.10.
Debian stable has 0.10.0.
2015-07-07 23:54:46 -04:00
Joey Hess
38215b7463 devblog 2015-07-07 17:38:02 -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
772dd88ae9 close; use receive.denyCurrentBranch=updateInstead 2015-07-07 16:00:25 -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
76bc0ce2a2 comment 2015-07-07 15:31:24 -04:00
Joey Hess
c6210902c0 merge 2 bugs 2015-07-07 15:12:03 -04:00
Joey Hess
1970c323c1 belated followup 2015-07-07 14:58:38 -04:00
Joey Hess
202f9bf06a comments 2015-07-07 14:50:47 -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
99a99b3f65 followup 2015-07-07 14:08:30 -04:00
Joey Hess
0964628818 clarify 2015-07-07 13:49:58 -04:00
Joey Hess
53d1259df6 comment 2015-07-07 13:37:05 -04:00
Joey Hess
f8bc2d159e clarify 2015-07-07 13:20:57 -04:00
Joey Hess
751f9c40ce On linux, pass --as-needed to linker to avoid linking with unused shared libraries including libyaml. 2015-07-07 13:19:13 -04:00
Joey Hess
a59185da5f moreinfo 2015-07-07 13:00:58 -04:00
Joey Hess
78d60eef27 Merge branch 'master' of ssh://git-annex.branchable.com 2015-07-07 11:53:33 -04:00
etesial@f4797a6d725e971a2d41f3cbcf174991da178c29
91461f26b7 Added a comment 2015-07-07 14:45:32 +00:00
robduff
cc869b0047 2015-07-07 12:56:32 +00:00
Joey Hess
f8a11a6ce8 add cjdns and tor also 2015-07-07 01:01:57 -04:00
Joey Hess
99362230bb update; mention snow and generalize the design some 2015-07-07 00:43:45 -04:00
sunny256
5436e10a96 Added a comment 2015-07-06 22:33:48 +00:00
Joey Hess
ad1ebcb1dc remove redundant options header 2015-07-06 18:22:27 -04:00
Joey Hess
efc3bcdba0 close 2015-07-06 18:18:57 -04:00
https://me.yahoo.com/a/EbvxpTI_xP9Aod7Mg4cwGhgjrCrdM5s-#7c0f4
61869298f5 2015-07-06 22:15:39 +00:00
Joey Hess
fcee3b2089 comment 2015-07-06 18:14:45 -04:00
Joey Hess
9273ae2766 Merge branch 'master' of ssh://git-annex.branchable.com 2015-07-06 18:12:18 -04:00
Joey Hess
d947035811 followup 2015-07-06 18:11:49 -04:00
boustanihani@93604388a6a2b8df16f3e34157232801a67c1021
07b09bb7aa Added a comment 2015-07-06 22:00:36 +00:00
Joey Hess
b0e872f129 devblog 2015-07-06 16:46:36 -04:00
Joey Hess
f4d07c5189 followup 2015-07-06 16:43:03 -04:00
Joey Hess
58e6d258c1 dup 2015-07-06 16:24:51 -04:00
Joey Hess
ba149973d6 followup and open bug 2015-07-06 16:20:57 -04:00
Joey Hess
c59e29ae40 try to tease out a coherent bug report 2015-07-06 16:05:56 -04:00