Documentation ¶
Index ¶
- type Config
- type ConfigBranch
- type ConfigReceive
- type ConfigRemote
- type ConfigUser
- type Refspec
- func (s *Refspec) Dst() string
- func (s *Refspec) DstForRef(p string) string
- func (s *Refspec) DstMatchRef(r string) bool
- func (s *Refspec) Exclude(r string) bool
- func (s *Refspec) IsGlob() bool
- func (s *Refspec) MarshalText() (text []byte, err error)
- func (s *Refspec) Src() string
- func (s *Refspec) SrcMatchRef(r string) bool
- func (s *Refspec) String() string
- func (s *Refspec) UnmarshalText(text []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { User *ConfigUser `yaml:"user,omitempty" json:"user,omitempty"` Remote map[string]*ConfigRemote `yaml:"remote,omitempty" json:"remote,omitempty"` Receive *ConfigReceive `yaml:"receive,omitempty" json:"receive,omitempty"` Branch map[string]*ConfigBranch `yaml:"branch,omitempty" json:"branch,omitempty"` Path string `yaml:"-" json:"-"` }
type ConfigBranch ¶
type ConfigReceive ¶
type ConfigRemote ¶
type ConfigRemote struct { URL string Fetch []*Refspec `yaml:"fetch,omitempty" json:"fetch,omitempty"` Push []*Refspec `yaml:"push,omitempty" json:"push,omitempty"` Mirror bool `yaml:"mirror,omitempty" json:"mirror,omitempty"` }
func (*ConfigRemote) FetchDstForRef ¶
func (cr *ConfigRemote) FetchDstForRef(r string) string
func (*ConfigRemote) FetchDstMatchRef ¶
func (cr *ConfigRemote) FetchDstMatchRef(r string) bool
type ConfigUser ¶
type Refspec ¶
func MustParseRefspec ¶
func ParseRefspec ¶
func (*Refspec) DstMatchRef ¶
func (*Refspec) MarshalText ¶
func (*Refspec) SrcMatchRef ¶
func (*Refspec) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.