patchtrack tree
Name the git trees that check looks in.
A tree is a ref in a local repository, with a role: maintainer (a
patch found there is queued), next (in-next) or mainline
(merged). Give either --ref (a ref already in the repository), or
--url and --branch: check --fetch then fetches the whole
branch into refs/patchtrack/NAME. It never makes a shallow fetch,
because a shallow history would make “not found” meaningless.
Trees can also be declared as [[trees]] in the config, which is
then their source of truth (tree rm refuses them).
tree discover finds the trees for you. Run in a kernel checkout,
patchtrack tree discover --add is all it takes. For each series
not yet found in a tree (open ones, and those a maintainer’s mail
calls applied) it reads the files the patches touch, finds the MAINTAINERS
sections that cover them (as get_maintainer.pl does) and lists
their T: trees. Where a T: line names no branch, linux-next’s
Next/Trees supplies the one that feeds linux-next. A tree in
neither has no known branch, because which branch means “applied” is
the maintainer’s choice: its branches are listed, and --add asks
which one when it runs in a terminal. --add adds the trees as
maintainer trees fetched into --repo (default: the repository
MAINTAINERS came from); then check --fetch looks in them.
MAINTAINERS is read from --maintainers REPO[:REF], else the
mainline tree, else the repository in the current directory.
Next/Trees is read from --next-trees (a file or a URL; none
for none), else the next tree’s copy, else, for the kernel’s
MAINTAINERS, linux-next’s own on git.kernel.org (one request).
Mainline itself is left out: add it with --role mainline.
usage: patchtrack tree [-h] [--repo REPO] [--ref REF] [--url URL]
[--branch BRANCH] [--role {maintainer,next,mainline}]
[--maintainers REPO[:REF]] [--next-trees FILE|URL|none]
[--no-ls-remote] [--add] [--all] [-a AUTHOR] [-l LIST]
{add,list,rm,discover} [name]
Positional Arguments
- action
Possible choices: add, list, rm, discover
- name
Named Arguments
- --repo
local repository (fetches go into it)
- --ref
a ref already in the repository
- --url
fetch from here into refs/patchtrack/NAME (whole branch, never shallow)
- --branch
the branch to fetch from –url
- --role
Possible choices: maintainer, next, mainline
maintainer: queued; next: in-next; mainline: merged
Default:
'maintainer'- --maintainers
discover: read MAINTAINERS here (default: the mainline tree, else the current directory’s repository)
- --next-trees
discover: linux-next’s Next/Trees (default: the next tree’s copy, else linux-next’s own on git.kernel.org)
- --no-ls-remote
discover: do not list the branches of trees whose branch is unknown
Default:
True- --add
discover: add the trees whose branch is known
Default:
False- --all
discover: queued, in-next, merged and superseded series too
Default:
False- -a, --author
discover: default: every author synced
- -l, --list
discover: only series found by a sync of this inbox