Expand description
Accesses repo-specific configuration.
Modules§
- env_
vars - Environment variables which affect the functioning of
git-branchless
.
Enums§
- Hint
- Possible hint types.
Constants§
- RESTACK_
WARN_ ABANDONED_ CONFIG_ KEY - Config key for
get_restack_warn_abandoned
.
Functions§
- get_
auto_ switch_ branches - If
true
, switch to the branch associated with a target commit instead of the commit directly. - get_
comment_ char - Get the default comment character.
- get_
commit_ descriptors_ branches - If
true
, show branches pointing to each commit in the smartlog. - get_
commit_ descriptors_ differential_ revision - If
true
, show associated Phabricator commits in the smartlog. - get_
commit_ descriptors_ relative_ time - If
true
, show the age of each commit in the smartlog. - get_
commit_ template - Get the commit template message, if any.
- get_
default_ branch_ name - Get the default init branch name.
- get_
default_ hooks_ dir - Get the expected hooks dir inside
.git
, assuming that the user has not overridden it. - get_
editor - Get the configured editor, if any.
- get_
hint_ enabled - Determine if a given hint is enabled.
- get_
hint_ string - Render the leading colored “hint” text for use in messaging.
- get_
main_ branch_ name - Get the configured name of the main branch.
- get_
main_ worktree_ hooks_ dir - Get the path where the main worktree’s Git hooks are stored on disk.
- get_
next_ interactive - If
true
, when advancing to a “next” commit, prompt interactively to if there is ambiguity in which commit to advance to. - get_
restack_ preserve_ timestamps - If
true
, when restacking a commit, do not update its timestamp to the current time. - get_
smartlog_ default_ revset - 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
. - get_
undo_ create_ snapshots - If
true
, create working copy snapshots automatically after certain operations. - print_
hint_ suppression_ notice - Print instructions explaining how to disable a given hint.