Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = []string{
"absorb",
"add",
"addremove",
"amend",
"annotate",
"at_tip",
"base",
"blame",
"branch",
"branches",
"change",
"changed",
"changelog",
"changes",
"checkout",
"commit",
"commitforce",
"copy",
"count",
"describe",
"diffedit",
"diffs",
"diffstat",
"drop",
"evolve",
"fastforward",
"fetchtime",
"fix",
"goto",
"graft",
"graph",
"histedit",
"ignore",
"incoming",
"lint",
"map",
"mergetool",
"move",
"next",
"outgoing",
"pending",
"pick",
"precommit",
"presubmit",
"prev",
"pull",
"push",
"rebase",
"recommit",
"remove",
"rename",
"resolve",
"restore",
"revert",
"review",
"reword",
"rootdir",
"show",
"split",
"squash",
"status",
"submit",
"submitforce",
"track",
"unamend",
"uncommit",
"undo",
"unknown",
"unmerged",
"unpulled",
"unpushed",
"untrack",
"upload",
"uploadchain",
}
Commands is the canonical list of all subcommands that every vcs-* backend must handle in its dispatch function, even if the implementation is a no-op or returns "not supported".
Coreutils-named aliases (mv, rm) are deliberately NOT listed even though every backend dispatches them: `vcs --list-commands` feeds the README's shell-integration snippet, which defines a shell function per listed command, and a generated mv/rm wrapper would shadow the real /bin/mv and /bin/rm in the user's shell. Their parity is pinned by per-backend tests instead.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package autofetch implements the `vcs auto-fetch` subcommand: a fast, prompt-friendly entry point that decides whether to spawn a detached background fetch for the current repo.
|
Package autofetch implements the `vcs auto-fetch` subcommand: a fast, prompt-friendly entry point that decides whether to spawn a detached background fetch for the current repo. |
|
cmd
|
|
|
vcs
command
vcs detects the version control system for the current directory and dispatches to the appropriate vcs-* binary.
|
vcs detects the version control system for the current directory and dispatches to the appropriate vcs-* binary. |
|
vcs-git
command
vcs-git translates unified VCS subcommands into git commands.
|
vcs-git translates unified VCS subcommands into git commands. |
|
vcs-hg
command
vcs-hg translates unified VCS subcommands into Mercurial commands.
|
vcs-hg translates unified VCS subcommands into Mercurial commands. |
|
vcs-jj
command
vcs-jj translates unified VCS subcommands into Jujutsu commands.
|
vcs-jj translates unified VCS subcommands into Jujutsu commands. |
|
vcs-p4
command
vcs-p4 translates unified VCS subcommands into Perforce (p4/g4) commands.
|
vcs-p4 translates unified VCS subcommands into Perforce (p4/g4) commands. |
|
internal
|
|
|
fetchlock
Package fetchlock serialises concurrent git fetches within a repo using an advisory flock on vcs-fetch.lock so that a background auto-fetch and an interactive vcs pull never write FETCH_HEAD concurrently (which produces "Cannot rebase onto multiple branches").
|
Package fetchlock serialises concurrent git fetches within a repo using an advisory flock on vcs-fetch.lock so that a background auto-fetch and an interactive vcs pull never write FETCH_HEAD concurrently (which produces "Cannot rebase onto multiple branches"). |
|
jjsync
Package jjsync reports when a jj workspace last pulled upstream state.
|
Package jjsync reports when a jj workspace last pulled upstream state. |
|
testenv
Package testenv provides shared test setup helpers.
|
Package testenv provides shared test setup helpers. |
|
Package promptinfo gathers VCS prompt information in a single invocation, replacing 6-12 shell forks per prompt with 1 process.
|
Package promptinfo gathers VCS prompt information in a single invocation, replacing 6-12 shell forks per prompt with 1 process. |
|
Package promptline assembles the first line of the shell prompt in a single process: hostname (with optional production-host coloring), shpool session tag, directory/VCS info, and auth warnings.
|
Package promptline assembles the first line of the shell prompt in a single process: hostname (with optional production-host coloring), shpool session tag, directory/VCS info, and auth warnings. |
|
Package runner provides helpers for executing VCS subcommands.
|
Package runner provides helpers for executing VCS subcommands. |
|
Package vcsdetect detects the VCS, backend, hosting, and root directory for a given working directory.
|
Package vcsdetect detects the VCS, backend, hosting, and root directory for a given working directory. |
|
Package version holds build metadata for the vcs binaries, read from the VCS stamps Go embeds via debug.ReadBuildInfo.
|
Package version holds build metadata for the vcs binaries, read from the VCS stamps Go embeds via debug.ReadBuildInfo. |
Click to show internal directories.
Click to hide internal directories.