gitconfig

package
v24.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package gitconfig provides functionality around storing Git Town configuration information as Git metadata. Git Town stores configuration in two locations: 1. Git metadata of the local repository. You can see it with `git config -l --local` 2. Global Git metadata. You can seet it with `git config -l --global`

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBranch

func DefaultBranch(querier subshelldomain.Querier) Option[gitdomain.LocalBranchName]

func DefaultRemote

func DefaultRemote(querier subshelldomain.Querier) gitdomain.Remote

func RemoteURL

func RemoteURL(backend subshelldomain.Querier, remote gitdomain.Remote) Option[string]

func RemoveAlias

func RemoveAlias(runner subshelldomain.Runner, aliasableCommand configdomain.AliasableCommand) error

func RemoveAutoSync

func RemoveAutoSync(runner subshelldomain.Runner) error

func RemoveBitbucketAPIToken

func RemoveBitbucketAPIToken(runner subshelldomain.Runner) error

func RemoveBitbucketUsername

func RemoveBitbucketUsername(runner subshelldomain.Runner) error

func RemoveBranchPrefix

func RemoveBranchPrefix(runner subshelldomain.Runner) error

func RemoveBranchTypeOverride

func RemoveBranchTypeOverride(runner subshelldomain.Runner, branch gitdomain.LocalBranchName) error

func RemoveConfigValue

func RemoveConfigValue(runner subshelldomain.Runner, scope configdomain.ConfigScope, key configdomain.Key) error

func RemoveContributionRegex

func RemoveContributionRegex(runner subshelldomain.Runner) error

func RemoveDetached

func RemoveDetached(runner subshelldomain.Runner) error

func RemoveDevRemote

func RemoveDevRemote(runner subshelldomain.Runner) error

func RemoveFeatureRegex

func RemoveFeatureRegex(runner subshelldomain.Runner) error

func RemoveForgeType

func RemoveForgeType(runner subshelldomain.Runner) error

func RemoveForgejoToken

func RemoveForgejoToken(runner subshelldomain.Runner) error

func RemoveGiteaToken

func RemoveGiteaToken(runner subshelldomain.Runner) error

func RemoveGithubConnectorType

func RemoveGithubConnectorType(runner subshelldomain.Runner) error

func RemoveGithubToken

func RemoveGithubToken(runner subshelldomain.Runner) error

func RemoveGitlabConnectorType

func RemoveGitlabConnectorType(runner subshelldomain.Runner) error

func RemoveGitlabToken

func RemoveGitlabToken(runner subshelldomain.Runner) error

func RemoveIgnoreUncommitted

func RemoveIgnoreUncommitted(runner subshelldomain.Runner) error

func RemoveInteractive

func RemoveInteractive(runner subshelldomain.Runner) error

func RemoveLocalGitConfiguration

func RemoveLocalGitConfiguration(runner subshelldomain.Runner, localSnapshot configdomain.SingleSnapshot) error

RemoveLocalGitConfiguration removes all Git Town configuration.

func RemoveMainBranch

func RemoveMainBranch(runner subshelldomain.Runner) error

func RemoveNewBranchType

func RemoveNewBranchType(runner subshelldomain.Runner) error

func RemoveObservedRegex

func RemoveObservedRegex(runner subshelldomain.Runner) error

func RemoveOrder

func RemoveOrder(runner subshelldomain.Runner) error

func RemoveOriginHostname

func RemoveOriginHostname(runner subshelldomain.Runner) error

func RemoveParent

func RemoveParent(runner subshelldomain.Runner, child gitdomain.LocalBranchName) error

func RemovePerennialBranches

func RemovePerennialBranches(runner subshelldomain.Runner) error

func RemovePerennialRegex

func RemovePerennialRegex(runner subshelldomain.Runner) error

func RemoveProposalBreadcrumb

func RemoveProposalBreadcrumb(runner subshelldomain.Runner) error

func RemoveProposalBreadcrumbDirection

func RemoveProposalBreadcrumbDirection(runner subshelldomain.Runner) error

func RemovePushBranches

func RemovePushBranches(runner subshelldomain.Runner) error

func RemovePushHook

func RemovePushHook(runner subshelldomain.Runner) error

func RemoveShareNewBranches

func RemoveShareNewBranches(runner subshelldomain.Runner) error

func RemoveShipDeleteTrackingBranch

func RemoveShipDeleteTrackingBranch(runner subshelldomain.Runner) error

func RemoveShipStrategy

func RemoveShipStrategy(runner subshelldomain.Runner) error

func RemoveStash

func RemoveStash(runner subshelldomain.Runner) error

func RemoveSyncFeatureStrategy

func RemoveSyncFeatureStrategy(runner subshelldomain.Runner) error

func RemoveSyncPerennialStrategy

func RemoveSyncPerennialStrategy(runner subshelldomain.Runner) error

func RemoveSyncPrototypeStrategy

func RemoveSyncPrototypeStrategy(runner subshelldomain.Runner) error

func RemoveSyncTags

func RemoveSyncTags(runner subshelldomain.Runner) error

func RemoveSyncUpstream

func RemoveSyncUpstream(runner subshelldomain.Runner) error

func RemoveUnknownBranchType

func RemoveUnknownBranchType(runner subshelldomain.Runner) error

func SetAlias

func SetAlias(runner subshelldomain.Runner, aliasableCommand configdomain.AliasableCommand) error

func SetAutoSync

func SetAutoSync(runner subshelldomain.Runner, value configdomain.AutoSync, scope configdomain.ConfigScope) error

func SetBranchTypeOverride

func SetBranchTypeOverride(runner subshelldomain.Runner, branchType configdomain.BranchType, branches ...gitdomain.LocalBranchName) error

func SetConfigValue

func SetConfigValue(runner subshelldomain.Runner, scope configdomain.ConfigScope, key configdomain.Key, value string) error

SetConfigValue sets the given configuration setting in the global Git configuration.

func SetDetached

func SetDetached(runner subshelldomain.Runner, value configdomain.Detached, scope configdomain.ConfigScope) error

func SetDevRemote

func SetDevRemote(runner subshelldomain.Runner, remote gitdomain.Remote, scope configdomain.ConfigScope) error

func SetForgeType

func SetForgeType(runner subshelldomain.Runner, forgeType forgedomain.ForgeType, scope configdomain.ConfigScope) error

func SetGiteaToken

func SetGiteaToken(runner subshelldomain.Runner, value forgedomain.GiteaToken, scope configdomain.ConfigScope) error

func SetOffline

func SetOffline(runner subshelldomain.Runner, value configdomain.Offline) error

func SetOrder

func SetOrder(runner subshelldomain.Runner, value configdomain.Order, scope configdomain.ConfigScope) error

func SetParent

func SetParent(runner subshelldomain.Runner, child, parent gitdomain.LocalBranchName) error

func SetPerennialBranches

func SetPerennialBranches(runner subshelldomain.Runner, branches gitdomain.LocalBranchNames, scope configdomain.ConfigScope) error

func SetPushHook

func SetPushHook(runner subshelldomain.Runner, value configdomain.PushHook, scope configdomain.ConfigScope) error

func SetStash

func SetStash(runner subshelldomain.Runner, value configdomain.Stash, scope configdomain.ConfigScope) error

func SetSyncTags

func SetSyncTags(runner subshelldomain.Runner, value configdomain.SyncTags, scope configdomain.ConfigScope) error

func UpdateDeprecatedSetting

func UpdateDeprecatedSetting(runner subshelldomain.Runner, scope configdomain.ConfigScope, oldKey, newKey configdomain.Key, value string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL