Skip to main content

Module worktree_convert_arguments

Module worktree_convert_arguments 

Source
Expand description

The grammar of git cli-git convert-worktree-to-subvolume. What: The grammar of git cli-git convert-worktree-to-subvolume. Why: The grammar is parsed on every platform by the management namespace; only the run needs Linux and btrfs.

In TS you’d write (pseudocode):

const arguments = parseConvertArguments(['--dry-run', '--all']);

Structs§

ConvertArguments
What: The parsed options. Why: The parse is separate from the run so the grammar is controlled without a filesystem.

Constants§

CONVERT_HELP
The text of --help.
RISK_NOTICE
The one line printed on standard error when a conversion runs, before anything is removed.

Functions§

parse_convert_arguments
What: Parse the words after convert-worktree-to-subvolume. Why: A refusal names the word it refused.
selects_attribute_source
What: Whether the global options before cli-git choose an attribute source: --attr-source, -c attr.tree=... or --config-env=attr.tree=.... Why: Git would then take its attributes from a tree, which the conversion’s content check does not read, so the check refuses to decide by content.