Module branchless::core::config
source · Expand description
Accesses repo-specific configuration.
Modules
- Environment variables which affect the functioning of
git-branchless
.
Enums
- Possible hint types.
Constants
- Config key for
get_restack_warn_abandoned
.
Functions
- If
true
, switch to the branch associated with a target commit instead of the commit directly. - Get the default comment character.
- If
true
, show branches pointing to each commit in the smartlog. - If
true
, show associated Phabricator commits in the smartlog. - If
true
, show the age of each commit in the smartlog. - Get the commit template message, if any.
- Get the default init branch name.
- Get the expected hooks dir inside
.git
, assuming that the user has not overridden it. - Get the configured editor, if any.
- Determine if a given hint is enabled.
- Render the leading colored “hint” text for use in messaging.
- Get the path where Git hooks are stored on disk.
- Get the configured name of the main branch.
- If
true
, when advancing to a “next” commit, prompt interactively to if there is ambiguity in which commit to advance to. - If
true
, when restacking a commit, do not update its timestamp to the current time. - The default smartlog revset to render. This will be used when running
git smartlog
with no arguments, and also when the smartlog is rendered automatically as part of some commands likegit next
/git prev
. - If
true
, create working copy snapshots automatically after certain operations. - Print instructions explaining how to disable a given hint.