Documentation
¶
Index ¶
- Constants
- type BooleanProperty
- type FloatProperty
- type IntProperty
- type KeyTemplate
- type Property
- type PropertyAccess
- type StringProperty
- type UserProperties
- func (inst *UserProperties) AuthorEmail() StringProperty
- func (inst *UserProperties) AuthorName() StringProperty
- func (inst *UserProperties) CommitterEmail() StringProperty
- func (inst *UserProperties) CommitterName() StringProperty
- func (inst *UserProperties) UserEmail() StringProperty
- func (inst *UserProperties) UserName() StringProperty
- func (inst *UserProperties) UserSigningKey() StringProperty
- func (inst *UserProperties) UserUseConfigOnly() BooleanProperty
Constants ¶
View Source
const NamePlaceholder = "<name>"
NamePlaceholder 名称占位符
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BooleanProperty ¶
BooleanProperty ...
type FloatProperty ¶
FloatProperty ...
type KeyTemplate ¶
type KeyTemplate string
KeyTemplate 表示仓库配置的属性名模板
const ( BranchSort KeyTemplate = "branch.sort" BranchNameRemote KeyTemplate = "branch.<name>.remote" BranchNamePushRemote KeyTemplate = "branch.<name>.pushRemote" BranchNameMerge KeyTemplate = "branch.<name>.merge" BranchNameMergeOptions KeyTemplate = "branch.<name>.mergeOptions" BranchNameRebase KeyTemplate = "branch.<name>.rebase" BranchNameDescription KeyTemplate = "branch.<name>.description" )
定义仓库配置名称 (branch.*)
const ( CoreLogAllRefUpdates KeyTemplate = "core.logAllRefUpdates" CoreSymlinks KeyTemplate = "core.symlinks" CoreIgnoreCase KeyTemplate = "core.ignoreCase" CoreBare KeyTemplate = "core.bare" CoreRepositoryFormatVersion KeyTemplate = "core.repositoryFormatVersion" CoreFileMode KeyTemplate = "core.fileMode" CoreCompressionAlgorithm KeyTemplate = "core.compressionAlgorithm" CoreDigestAlgorithm KeyTemplate = "core.digestAlgorithm" CoreObjectsPathPattern KeyTemplate = "core.objectsPathPattern" )
定义仓库配置名称 (core.*)
const ( RemoteNameURL KeyTemplate = "remote.<name>.url" RemoteNamePushURL KeyTemplate = "remote.<name>.pushurl" RemoteNameProxy KeyTemplate = "remote.<name>.proxy" RemoteNameFetch KeyTemplate = "remote.<name>.fetch" RemoteNamePush KeyTemplate = "remote.<name>.push" RemoteNameMirror KeyTemplate = "remote.<name>.mirror" )
定义仓库配置名称 (remote.*)
const ( AuthorName KeyTemplate = "author.name" AuthorEmail KeyTemplate = "author.email" CommitterName KeyTemplate = "committer.name" CommitterEmail KeyTemplate = "committer.email" UserName KeyTemplate = "user.name" UserEmail KeyTemplate = "user.email" UserUseConfigOnly KeyTemplate = "user.useConfigOnly" UserSigningKey KeyTemplate = "user.signingKey" )
定义仓库配置名称 (user.*)
func (KeyTemplate) String ¶ added in v0.0.3
func (kt KeyTemplate) String() string
type PropertyAccess ¶
type PropertyAccess interface { ForString(template KeyTemplate, id string, def string) StringProperty ForInt(template KeyTemplate, id string, def int) IntProperty ForBool(template KeyTemplate, id string, def bool) BooleanProperty ForFloat(template KeyTemplate, id string, def float64) FloatProperty }
PropertyAccess ...
type StringProperty ¶
StringProperty ...
type UserProperties ¶
type UserProperties struct {
// contains filtered or unexported fields
}
UserProperties ...
func (*UserProperties) AuthorEmail ¶
func (inst *UserProperties) AuthorEmail() StringProperty
AuthorEmail ...
func (*UserProperties) AuthorName ¶
func (inst *UserProperties) AuthorName() StringProperty
AuthorName ...
func (*UserProperties) CommitterEmail ¶
func (inst *UserProperties) CommitterEmail() StringProperty
CommitterEmail ...
func (*UserProperties) CommitterName ¶
func (inst *UserProperties) CommitterName() StringProperty
CommitterName ...
func (*UserProperties) UserEmail ¶
func (inst *UserProperties) UserEmail() StringProperty
UserEmail ...
func (*UserProperties) UserName ¶
func (inst *UserProperties) UserName() StringProperty
UserName ...
func (*UserProperties) UserSigningKey ¶
func (inst *UserProperties) UserSigningKey() StringProperty
UserSigningKey ...
func (*UserProperties) UserUseConfigOnly ¶
func (inst *UserProperties) UserUseConfigOnly() BooleanProperty
UserUseConfigOnly ...
Click to show internal directories.
Click to hide internal directories.