git-annex/doc/git-annex-vadd.mdwn
Joey Hess aa0350ff49
add directory to views for files that lack specified metadata
* view: New field?=glob and ?tag syntax that includes a directory "_"
  in the view for files that do not have the specified metadata set.
* Added annex.viewunsetdirectory git config to change the name of the
  "_" directory in a view.

When in a view using the new syntax, old git-annex will fail to parse the
view log. It errors with "Not in a view.", which is not ideal. But that
only affects view commands.

annex.viewunsetdirectory is included in the View for a couple of reasons.
One is to avoid needing to warn the user that it should not be changed when
in a view, since that would confuse git-annex. Another reason is that it
helped with plumbing the value through to some pure functions.

annex.viewunsetdirectory is actually mangled the same as any other view
directory. So if it's configured to something like "N/A", there won't be
multiple levels of directories, which would also confuse git-annex.

Sponsored-By: Jack Hill on Patreon
2023-02-07 16:28:46 -04:00

42 lines
777 B
Markdown

# NAME
git-annex vadd - add subdirs to current view
# SYNOPSIS
git annex vadd `[field=glob ...] [field=value ...] [tag ...] [?tag ...] [field?=glob]`
# DESCRIPTION
Changes the current view, adding an additional level of directories
to categorize the files.
For example, when the view is by author/tag, `vadd year=*` will
change it to year/author/tag.
So will `vadd year=2014 year=2013`, but limiting the years in view
to only those two.
# OPTIONS
* The [[git-annex-common-options]](1) can be used.
# SEE ALSO
[[git-annex]](1)
[[git-annex-metadata]](1)
[[git-annex-view]](1)
[[git-annex-vpop]](1)
[[git-annex-vfilter]](1)
[[git-annex-vcycle]](1)
# AUTHOR
Joey Hess <id@joeyh.name>
Warning: Automatically converted into a man page by mdwn2man. Edit with care.