CLI configuration¶
The behavior of git-spice can be customized with git config
.
Configuration options may be set at the user level with the --global
flag,
or at the repository level with the --local
flag.
What about --system
and --worktree
?
All configuration levels supported by git config
are allowed,
although --system
and --worktree
are less commonly used.
Use --worktree
to override repository-level settings
for a specific git-worktree.
Available options¶
spice.branchCheckout.showUntracked¶
When running
Accepted values:
true
false
(default)
spice.branchCreate.commit¶
Whether false
to default to creating new branches without committing,
and use the --commit
flag to commit changes when needed.
true
(default)false
spice.forge.github.apiUrl¶
URL at which the GitHub API is available.
Defaults to $GITHUB_API_URL
if set,
or computed from the GitHub URL if not set.
See also: GitHub Enterprise.
spice.forge.github.url¶
URL of the GitHub instance used for GitHub requests.
Defaults to $GITHUB_URL
if set, or https://github.com
otherwise.
See also: GitHub Enterprise.
spice.forge.gitlab.url¶
URL of the GitLab instance used for GitLab requests.
Defaults to $GITLAB_URL
if set, or https://gitlab.com
otherwise.
See also GitLab Self-Hosted.
spice.forge.gitlab.oauth.clientID¶
Client ID for OAuth authentication with GitLab.
Defaults to git-spice's built-in Client ID (valid only for https://gitlab.com)
or $GITLAB_OAUTH_CLIENT_ID
if set.
For Self-Hosted GitLab instances, you must set this value to a custom Client ID.
See also GitLab Self-Hosted.
spice.log.all¶
Whether
Accepted values:
true
false
(default)
spice.rebaseContinue.edit¶
Whether
If set to false, you can opt in to opening the editor with the --edit
flag.
Accepted values:
true
(default)false
spice.submit.listTemplatesTimeout¶
Maximum duration that
Value must be a duration string such as 5s
, 1m
, 1h
, etc.
Defaults to 1s
.
Bump this value if you see warnings like any of the following:
WRN Failed to cache templates err="cache templates: write object: hash-object: signal: killed"
WRN Could not list change templates error="list templates: Post \"https://api.github.com/graphql\": context deadline exceeded"
Set to 0
to disable the timeout completely.
spice.submit.navigationComment¶
Specifies whether CR submission commands (
Accepted values:
true
(default): always post or update navigation commentsfalse
: don't post or update navigation commentsmultiple
: post or update navigation comments only for stacks with at least two CRs
spice.submit.publish¶
Whether submission commands (
If this is set to false, submit commands will push branches,
but not create CRs.
In that case, the --publish
flag will opt-in to creating CRs
on a case-by-case basis.
Accepted values:
true
(default)false
spice.submit.web¶
Whether submission commands (
Accepted values:
true
false
(default)