summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Command/MetaData.hs2
-rw-r--r--Command/VAdd.hs2
-rw-r--r--Command/VPop.hs2
-rw-r--r--Command/View.hs2
-rw-r--r--Types/Command.hs2
-rw-r--r--doc/git-annex.mdwn70
6 files changed, 42 insertions, 38 deletions
diff --git a/Command/MetaData.hs b/Command/MetaData.hs
index 5608701f1..23a9bc2b3 100644
--- a/Command/MetaData.hs
+++ b/Command/MetaData.hs
@@ -18,7 +18,7 @@ import Data.Time.Clock.POSIX
def :: [Command]
def = [withOptions [setOption] $ command "metadata" paramPaths seek
- SectionUtility "sets metadata of a file"]
+ SectionMetaData "sets metadata of a file"]
setOption :: Option
setOption = Option ['s'] ["set"] (ReqArg mkmod "FIELD[+-]=VALUE") "set metadata"
diff --git a/Command/VAdd.hs b/Command/VAdd.hs
index e766f3939..d7dee9fb7 100644
--- a/Command/VAdd.hs
+++ b/Command/VAdd.hs
@@ -15,7 +15,7 @@ import Command.View (paramView, parseViewParam, checkoutViewBranch)
def :: [Command]
def = [notBareRepo $ notDirect $
- command "vadd" paramView seek SectionUtility "refine current view"]
+ command "vadd" paramView seek SectionMetaData "refine current view"]
seek :: CommandSeek
seek = withWords start
diff --git a/Command/VPop.hs b/Command/VPop.hs
index baa52a98f..706a522f8 100644
--- a/Command/VPop.hs
+++ b/Command/VPop.hs
@@ -18,7 +18,7 @@ import Command.View (checkoutViewBranch)
def :: [Command]
def = [notBareRepo $ notDirect $
- command "vpop" (paramOptional paramNumber) seek SectionUtility
+ command "vpop" (paramOptional paramNumber) seek SectionMetaData
"switch back to previous view"]
seek :: CommandSeek
diff --git a/Command/View.hs b/Command/View.hs
index 5895ba08f..7cc908436 100644
--- a/Command/View.hs
+++ b/Command/View.hs
@@ -20,7 +20,7 @@ import Logs.View
def :: [Command]
def = [notBareRepo $ notDirect $
- command "view" paramView seek SectionUtility "enter a view branch"]
+ command "view" paramView seek SectionMetaData "enter a view branch"]
seek :: CommandSeek
seek = withWords start
diff --git a/Types/Command.hs b/Types/Command.hs
index ecde75cae..0df7c82e6 100644
--- a/Types/Command.hs
+++ b/Types/Command.hs
@@ -66,6 +66,7 @@ data CommandSection
| SectionSetup
| SectionMaintenance
| SectionQuery
+ | SectionMetaData
| SectionUtility
| SectionPlumbing
deriving (Eq, Ord, Enum, Bounded)
@@ -75,5 +76,6 @@ descSection SectionCommon = "Commonly used commands"
descSection SectionSetup = "Repository setup commands"
descSection SectionMaintenance = "Repository maintenance commands"
descSection SectionQuery = "Query commands"
+descSection SectionMetaData = "Metadata commands"
descSection SectionUtility = "Utility commands"
descSection SectionPlumbing = "Plumbing commands"
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index cdd59ef9c..6306a742a 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -313,39 +313,6 @@ subdirectories).
from a remote computer.
Note that this does not yet use HTTPS for security, so use with caution!
-* `view [field=value ...] [tag ...]`
-
- Uses metadata to build a view branch of the files in the current branch,
- and checks out the view branch. Only files in the current branch whose
- metadata matches all the specified field values and tags will be
- shown in the view.
-
- Multiple values for a metadata field can be specified, either by using
- a glob (field="\*") or by listing each wanted value. The resulting view
- will put files in subdirectories according to the value of their fields.
-
- Once within a view, you can make additional subdirectories, and
- copy or move files into them. When you commit, the metadata will
- be updated to correspond to your changes.
-
-* `vpop [N]`
-
- Switches from the currently active view back to the previous view.
- Or, from the first view back to original branch.
-
- The optional number tells how many views to pop.
-
-* `vadd [field=value ...] [tag ...]`
-
- Refines the currently checked out view branch, adding additional fields
- or tags.
-
-* `vcycle`
-
- When a view involves nested subdirectories, this cycles the order.
- For example, when the view has date/author/tag, vcycle will switch
- it to author/tag/date.
-
# REPOSITORY SETUP COMMANDS
* `init [description]`
@@ -726,7 +693,7 @@ subdirectories).
Note that this subcommand can be used to graph any git repository; it
is not limited to git-annex repositories.
-# UTILITY COMMANDS
+# METADATA COMMANDS
* `metadata [path ...] [-s field=value -s field+=value -s field-=value ...]`
@@ -745,6 +712,41 @@ subdirectories).
git annex metadata annexscreencast.ogv -s tag+=video -s tag+=screencast
+* `view [field=value ...] [tag ...]`
+
+ Uses metadata to build a view branch of the files in the current branch,
+ and checks out the view branch. Only files in the current branch whose
+ metadata matches all the specified field values and tags will be
+ shown in the view.
+
+ Multiple values for a metadata field can be specified, either by using
+ a glob (field="\*") or by listing each wanted value. The resulting view
+ will put files in subdirectories according to the value of their fields.
+
+ Once within a view, you can make additional subdirectories, and
+ copy or move files into them. When you commit, the metadata will
+ be updated to correspond to your changes.
+
+* `vpop [N]`
+
+ Switches from the currently active view back to the previous view.
+ Or, from the first view back to original branch.
+
+ The optional number tells how many views to pop.
+
+* `vadd [field=value ...] [tag ...]`
+
+ Refines the currently checked out view branch, adding additional fields
+ or tags.
+
+* `vcycle`
+
+ When a view involves nested subdirectories, this cycles the order.
+ For example, when the view has date/author/tag, vcycle will switch
+ it to author/tag/date.
+
+# UTILITY COMMANDS
+
* `migrate [path ...]`
Changes the specified annexed files to use the default key-value backend