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 ¶
- func DefaultBranch(querier subshelldomain.Querier) Option[gitdomain.LocalBranchName]
- func DefaultRemote(querier subshelldomain.Querier) gitdomain.Remote
- func LoadSnapshot(backend subshelldomain.RunnerQuerier, ...) (configdomain.SingleSnapshot, error)
- func RemoteURL(backend subshelldomain.Querier, remote gitdomain.Remote) Option[string]
- func RemoveAlias(runner subshelldomain.Runner, aliasableCommand configdomain.AliasableCommand) error
- func RemoveAutoSync(runner subshelldomain.Runner) error
- func RemoveBitbucketAPIToken(runner subshelldomain.Runner) error
- func RemoveBitbucketUsername(runner subshelldomain.Runner) error
- func RemoveBranchPrefix(runner subshelldomain.Runner) error
- func RemoveBranchTypeOverride(runner subshelldomain.Runner, branch gitdomain.LocalBranchName) error
- func RemoveConfigValue(runner subshelldomain.Runner, scope configdomain.ConfigScope, ...) error
- func RemoveContributionRegex(runner subshelldomain.Runner) error
- func RemoveDetached(runner subshelldomain.Runner) error
- func RemoveDevRemote(runner subshelldomain.Runner) error
- func RemoveFeatureRegex(runner subshelldomain.Runner) error
- func RemoveForgeType(runner subshelldomain.Runner) error
- func RemoveForgejoToken(runner subshelldomain.Runner) error
- func RemoveGiteaToken(runner subshelldomain.Runner) error
- func RemoveGithubConnectorType(runner subshelldomain.Runner) error
- func RemoveGithubToken(runner subshelldomain.Runner) error
- func RemoveGitlabConnectorType(runner subshelldomain.Runner) error
- func RemoveGitlabToken(runner subshelldomain.Runner) error
- func RemoveIgnoreUncommitted(runner subshelldomain.Runner) error
- func RemoveInteractive(runner subshelldomain.Runner) error
- func RemoveLocalGitConfiguration(runner subshelldomain.Runner, localSnapshot configdomain.SingleSnapshot) error
- func RemoveMainBranch(runner subshelldomain.Runner) error
- func RemoveNewBranchType(runner subshelldomain.Runner) error
- func RemoveObservedRegex(runner subshelldomain.Runner) error
- func RemoveOrder(runner subshelldomain.Runner) error
- func RemoveOriginHostname(runner subshelldomain.Runner) error
- func RemoveParent(runner subshelldomain.Runner, child gitdomain.LocalBranchName) error
- func RemovePerennialBranches(runner subshelldomain.Runner) error
- func RemovePerennialRegex(runner subshelldomain.Runner) error
- func RemoveProposalBreadcrumb(runner subshelldomain.Runner) error
- func RemoveProposalBreadcrumbDirection(runner subshelldomain.Runner) error
- func RemovePushBranches(runner subshelldomain.Runner) error
- func RemovePushHook(runner subshelldomain.Runner) error
- func RemoveShareNewBranches(runner subshelldomain.Runner) error
- func RemoveShipDeleteTrackingBranch(runner subshelldomain.Runner) error
- func RemoveShipStrategy(runner subshelldomain.Runner) error
- func RemoveStash(runner subshelldomain.Runner) error
- func RemoveSyncFeatureStrategy(runner subshelldomain.Runner) error
- func RemoveSyncPerennialStrategy(runner subshelldomain.Runner) error
- func RemoveSyncPrototypeStrategy(runner subshelldomain.Runner) error
- func RemoveSyncTags(runner subshelldomain.Runner) error
- func RemoveSyncUpstream(runner subshelldomain.Runner) error
- func RemoveUnknownBranchType(runner subshelldomain.Runner) error
- func SetAlias(runner subshelldomain.Runner, aliasableCommand configdomain.AliasableCommand) error
- func SetAutoSync(runner subshelldomain.Runner, value configdomain.AutoSync, ...) error
- func SetBitbucketAPIToken(runner subshelldomain.Runner, value forgedomain.BitbucketAPIToken, ...) error
- func SetBitbucketUsername(runner subshelldomain.Runner, value forgedomain.BitbucketUsername, ...) error
- func SetBranchPrefix(runner subshelldomain.Runner, value configdomain.BranchPrefix, ...) error
- func SetBranchTypeOverride(runner subshelldomain.Runner, branchType configdomain.BranchType, ...) error
- func SetConfigValue(runner subshelldomain.Runner, scope configdomain.ConfigScope, ...) error
- func SetContributionRegex(runner subshelldomain.Runner, regex configdomain.ContributionRegex, ...) error
- func SetDetached(runner subshelldomain.Runner, value configdomain.Detached, ...) error
- func SetDevRemote(runner subshelldomain.Runner, remote gitdomain.Remote, ...) error
- func SetFeatureRegex(runner subshelldomain.Runner, regex configdomain.FeatureRegex, ...) error
- func SetForgeType(runner subshelldomain.Runner, forgeType forgedomain.ForgeType, ...) error
- func SetForgejoToken(runner subshelldomain.Runner, value forgedomain.ForgejoToken, ...) error
- func SetGiteaToken(runner subshelldomain.Runner, value forgedomain.GiteaToken, ...) error
- func SetGithubConnectorType(runner subshelldomain.Runner, value forgedomain.GithubConnectorType, ...) error
- func SetGithubToken(runner subshelldomain.Runner, value forgedomain.GithubToken, ...) error
- func SetGitlabConnectorType(runner subshelldomain.Runner, value forgedomain.GitlabConnectorType, ...) error
- func SetGitlabToken(runner subshelldomain.Runner, value forgedomain.GitlabToken, ...) error
- func SetIgnoreUncommitted(runner subshelldomain.Runner, value configdomain.IgnoreUncommitted, ...) error
- func SetInteractive(runner subshelldomain.Runner, value configdomain.Interactive, ...) error
- func SetMainBranch(runner subshelldomain.Runner, value gitdomain.LocalBranchName, ...) error
- func SetNewBranchType(runner subshelldomain.Runner, value configdomain.NewBranchType, ...) error
- func SetObservedRegex(runner subshelldomain.Runner, regex configdomain.ObservedRegex, ...) error
- func SetOffline(runner subshelldomain.Runner, value configdomain.Offline) error
- func SetOrder(runner subshelldomain.Runner, value configdomain.Order, ...) error
- func SetOriginHostname(runner subshelldomain.Runner, hostname configdomain.HostingOriginHostname, ...) error
- func SetParent(runner subshelldomain.Runner, child, parent gitdomain.LocalBranchName) error
- func SetPerennialBranches(runner subshelldomain.Runner, branches gitdomain.LocalBranchNames, ...) error
- func SetPerennialRegex(runner subshelldomain.Runner, value configdomain.PerennialRegex, ...) error
- func SetProposalBreadcrumb(runner subshelldomain.Runner, value configdomain.ProposalBreadcrumb, ...) error
- func SetProposalBreadcrumbDirection(runner subshelldomain.Runner, value configdomain.ProposalBreadcrumbDirection, ...) error
- func SetPushBranches(runner subshelldomain.Runner, value configdomain.PushBranches, ...) error
- func SetPushHook(runner subshelldomain.Runner, value configdomain.PushHook, ...) error
- func SetShareNewBranches(runner subshelldomain.Runner, value configdomain.ShareNewBranches, ...) error
- func SetShipDeleteTrackingBranch(runner subshelldomain.Runner, value configdomain.ShipDeleteTrackingBranch, ...) error
- func SetShipStrategy(runner subshelldomain.Runner, value configdomain.ShipStrategy, ...) error
- func SetStash(runner subshelldomain.Runner, value configdomain.Stash, ...) error
- func SetSyncFeatureStrategy(runner subshelldomain.Runner, value configdomain.SyncFeatureStrategy, ...) error
- func SetSyncPerennialStrategy(runner subshelldomain.Runner, value configdomain.SyncPerennialStrategy, ...) error
- func SetSyncPrototypeStrategy(runner subshelldomain.Runner, value configdomain.SyncPrototypeStrategy, ...) error
- func SetSyncTags(runner subshelldomain.Runner, value configdomain.SyncTags, ...) error
- func SetSyncUpstream(runner subshelldomain.Runner, value configdomain.SyncUpstream, ...) error
- func SetUnknownBranchType(runner subshelldomain.Runner, value configdomain.UnknownBranchType, ...) error
- func UpdateDeprecatedSetting(runner subshelldomain.Runner, scope configdomain.ConfigScope, ...)
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 LoadSnapshot ¶
func LoadSnapshot(backend subshelldomain.RunnerQuerier, scopeOpt Option[configdomain.ConfigScope], updateOutdated configdomain.UpdateOutdatedSettings) (configdomain.SingleSnapshot, error)
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 SetBitbucketAPIToken ¶
func SetBitbucketAPIToken(runner subshelldomain.Runner, value forgedomain.BitbucketAPIToken, scope configdomain.ConfigScope) error
func SetBitbucketUsername ¶
func SetBitbucketUsername(runner subshelldomain.Runner, value forgedomain.BitbucketUsername, scope configdomain.ConfigScope) error
func SetBranchPrefix ¶
func SetBranchPrefix(runner subshelldomain.Runner, value configdomain.BranchPrefix, 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 SetContributionRegex ¶
func SetContributionRegex(runner subshelldomain.Runner, regex configdomain.ContributionRegex, scope configdomain.ConfigScope) error
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 SetFeatureRegex ¶
func SetFeatureRegex(runner subshelldomain.Runner, regex configdomain.FeatureRegex, scope configdomain.ConfigScope) error
func SetForgeType ¶
func SetForgeType(runner subshelldomain.Runner, forgeType forgedomain.ForgeType, scope configdomain.ConfigScope) error
func SetForgejoToken ¶
func SetForgejoToken(runner subshelldomain.Runner, value forgedomain.ForgejoToken, scope configdomain.ConfigScope) error
func SetGiteaToken ¶
func SetGiteaToken(runner subshelldomain.Runner, value forgedomain.GiteaToken, scope configdomain.ConfigScope) error
func SetGithubConnectorType ¶
func SetGithubConnectorType(runner subshelldomain.Runner, value forgedomain.GithubConnectorType, scope configdomain.ConfigScope) error
func SetGithubToken ¶
func SetGithubToken(runner subshelldomain.Runner, value forgedomain.GithubToken, scope configdomain.ConfigScope) error
func SetGitlabConnectorType ¶
func SetGitlabConnectorType(runner subshelldomain.Runner, value forgedomain.GitlabConnectorType, scope configdomain.ConfigScope) error
func SetGitlabToken ¶
func SetGitlabToken(runner subshelldomain.Runner, value forgedomain.GitlabToken, scope configdomain.ConfigScope) error
func SetIgnoreUncommitted ¶
func SetIgnoreUncommitted(runner subshelldomain.Runner, value configdomain.IgnoreUncommitted, scope configdomain.ConfigScope) error
func SetInteractive ¶
func SetInteractive(runner subshelldomain.Runner, value configdomain.Interactive, scope configdomain.ConfigScope) error
func SetMainBranch ¶
func SetMainBranch(runner subshelldomain.Runner, value gitdomain.LocalBranchName, scope configdomain.ConfigScope) error
func SetNewBranchType ¶
func SetNewBranchType(runner subshelldomain.Runner, value configdomain.NewBranchType, scope configdomain.ConfigScope) error
func SetObservedRegex ¶
func SetObservedRegex(runner subshelldomain.Runner, regex configdomain.ObservedRegex, 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 SetOriginHostname ¶
func SetOriginHostname(runner subshelldomain.Runner, hostname configdomain.HostingOriginHostname, 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 SetPerennialRegex ¶
func SetPerennialRegex(runner subshelldomain.Runner, value configdomain.PerennialRegex, scope configdomain.ConfigScope) error
func SetProposalBreadcrumb ¶
func SetProposalBreadcrumb(runner subshelldomain.Runner, value configdomain.ProposalBreadcrumb, scope configdomain.ConfigScope) error
func SetProposalBreadcrumbDirection ¶
func SetProposalBreadcrumbDirection(runner subshelldomain.Runner, value configdomain.ProposalBreadcrumbDirection, scope configdomain.ConfigScope) error
func SetPushBranches ¶
func SetPushBranches(runner subshelldomain.Runner, value configdomain.PushBranches, scope configdomain.ConfigScope) error
func SetPushHook ¶
func SetPushHook(runner subshelldomain.Runner, value configdomain.PushHook, scope configdomain.ConfigScope) error
func SetShareNewBranches ¶
func SetShareNewBranches(runner subshelldomain.Runner, value configdomain.ShareNewBranches, scope configdomain.ConfigScope) error
func SetShipDeleteTrackingBranch ¶
func SetShipDeleteTrackingBranch(runner subshelldomain.Runner, value configdomain.ShipDeleteTrackingBranch, scope configdomain.ConfigScope) error
func SetShipStrategy ¶
func SetShipStrategy(runner subshelldomain.Runner, value configdomain.ShipStrategy, scope configdomain.ConfigScope) error
func SetStash ¶
func SetStash(runner subshelldomain.Runner, value configdomain.Stash, scope configdomain.ConfigScope) error
func SetSyncFeatureStrategy ¶
func SetSyncFeatureStrategy(runner subshelldomain.Runner, value configdomain.SyncFeatureStrategy, scope configdomain.ConfigScope) error
func SetSyncPerennialStrategy ¶
func SetSyncPerennialStrategy(runner subshelldomain.Runner, value configdomain.SyncPerennialStrategy, scope configdomain.ConfigScope) error
func SetSyncPrototypeStrategy ¶
func SetSyncPrototypeStrategy(runner subshelldomain.Runner, value configdomain.SyncPrototypeStrategy, scope configdomain.ConfigScope) error
func SetSyncTags ¶
func SetSyncTags(runner subshelldomain.Runner, value configdomain.SyncTags, scope configdomain.ConfigScope) error
func SetSyncUpstream ¶
func SetSyncUpstream(runner subshelldomain.Runner, value configdomain.SyncUpstream, scope configdomain.ConfigScope) error
func SetUnknownBranchType ¶
func SetUnknownBranchType(runner subshelldomain.Runner, value configdomain.UnknownBranchType, 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.
Click to show internal directories.
Click to hide internal directories.