git-annex/Command
Joey Hess 0a36f92a31 more command-specific options
Made --from and --to command-specific options.

Added generic storage for values of command-specific options,
which allows removing some of the special case fields in AnnexState.

(Also added generic storage for command-specific flags, although there are
not yet any.)

Note that this storage uses a Map, so repeatedly looking up the same value
is slightly more expensive than looking up an AnnexState field. But, the
value can be looked up once in the seek stage, transformed as necessary,
and passed in a closure to the start stage, and this avoids that overhead.

Still, I'm hesitant to use this for things like force or fast flags.
It's probably best to reserve it for flags that are only used by a few
commands, or options like --from and --to that it's important only be
allowed to be used with commands that implement them, to avoid user
confusion.
2012-01-06 03:16:42 -04:00
..
Add.hs add: If interrupted, add can leave files converted to symlinks but not yet added to git. Running the add again will now clean up this situtation. 2011-12-07 16:53:53 -04:00
AddUrl.hs Added remote.name.annex-web-options configuration setting, which can be used to provide parameters to whichever of wget or curl git-annex uses (depends on which is available, but most of their important options suitable for use here are the same). 2012-01-02 14:20:20 -04:00
ConfigList.hs clean up read/show abuse 2011-11-08 00:17:54 -04:00
Copy.hs more command-specific options 2012-01-06 03:16:42 -04:00
Dead.hs add 2011-12-02 19:22:43 -04:00
Describe.hs lint 2011-11-11 01:52:58 -04:00
Drop.hs more command-specific options 2012-01-06 03:16:42 -04:00
DropKey.hs inverted logic 2011-12-09 13:38:28 -04:00
DropUnused.hs more command-specific options 2012-01-06 03:16:42 -04:00
Find.hs more command-specific options 2012-01-06 03:16:42 -04:00
Fix.hs type alias cleanup 2011-12-31 04:11:58 -04:00
FromKey.hs lint 2011-11-11 01:52:58 -04:00
Fsck.hs fsck: Do backend-specific check before checking numcopies is satisfied. 2012-01-03 18:40:47 -04:00
Get.hs more command-specific options 2012-01-06 03:16:42 -04:00
InAnnex.hs safer inannex checking 2011-11-09 18:33:15 -04:00
Init.hs init: When run in an already initalized repository, and without a description specified, don't delete the old description. 2011-11-12 15:42:52 -04:00
InitRemote.hs type alias cleanup 2011-12-31 04:11:58 -04:00
Lock.hs clean up check selection code 2011-10-29 15:19:05 -04:00
Map.hs map: --fast disables use of dot to display map 2011-12-20 16:42:35 -04:00
Merge.hs clean up check selection code 2011-10-29 15:19:05 -04:00
Migrate.hs type alias cleanup 2011-12-31 04:11:58 -04:00
Move.hs more command-specific options 2012-01-06 03:16:42 -04:00
PreCommit.hs better limiting of start actions to only run whenAnnexed 2011-11-10 23:45:14 -04:00
RecvKey.hs clean up check selection code 2011-10-29 15:19:05 -04:00
Reinject.hs type alias cleanup 2011-12-31 04:11:58 -04:00
Semitrust.hs clean up check selection code 2011-10-29 15:19:05 -04:00
SendKey.hs add support for using hashDirLower in addition to hashDirMixed 2011-11-28 22:43:51 -04:00
Status.hs per-command options 2012-01-05 23:11:07 -04:00
Sync.hs tweak 2012-01-02 11:57:02 -04:00
Trust.hs clean up check selection code 2011-10-29 15:19:05 -04:00
Unannex.hs type alias cleanup 2011-12-31 04:11:58 -04:00
Uninit.hs type alias cleanup 2011-12-31 04:11:58 -04:00
Unlock.hs type alias cleanup 2011-12-31 04:11:58 -04:00
Untrust.hs clean up check selection code 2011-10-29 15:19:05 -04:00
Unused.hs more command-specific options 2012-01-06 03:16:42 -04:00
Upgrade.hs clean up check selection code 2011-10-29 15:19:05 -04:00
Version.hs When not run in a git repository, git-annex can still display a usage message, and "git annex version" even works. 2011-11-16 00:49:09 -04:00
Whereis.hs type alias cleanup 2011-12-31 04:11:58 -04:00