Documentation ¶
Index ¶
- func CreateObjectID(b []byte) (git.ObjectID, error)
- func FormatCommit(commit *git.Commit) (string, error)
- func FormatHEAD(h *git.HEAD) (string, error)
- func FormatHyperMessage(msg *git.HyperMessage) (string, error)
- func FormatOperator(o *git.Operator) (string, error)
- func FormatProperties(tab *git.Properties) string
- func FormatPropertiesWithSegment(tab *git.Properties) string
- func FormatRef(ref *git.Ref) (string, error)
- func FormatTag(tag *git.Tag) (string, error)
- func FormatTree(tree *git.Tree) ([]byte, error)
- func ParseCommit(text string) (*git.Commit, error)
- func ParseHEAD(text string) (*git.HEAD, error)
- func ParseHyperMessage(text string) (*git.HyperMessage, error)
- func ParseObjectID(text string) (git.ObjectID, error)
- func ParseOperator(text string) (*git.Operator, error)
- func ParseProperties(text string, container *git.Properties) (*git.Properties, error)
- func ParseRef(text string) (*git.Ref, error)
- func ParseTag(text string) (*git.Tag, error)
- func ParseTree(data []byte) (*git.Tree, error)
- type CommitBuilder
- func (inst *CommitBuilder) Add(value *git.HyperHeader) error
- func (inst *CommitBuilder) AddExt(src *git.HyperHeader) error
- func (inst *CommitBuilder) Create() *git.Commit
- func (inst *CommitBuilder) SetAuthor(value *git.HyperHeader) error
- func (inst *CommitBuilder) SetCommitter(value *git.HyperHeader) error
- func (inst *CommitBuilder) SetContent(content string)
- func (inst *CommitBuilder) SetParent(value *git.HyperHeader) error
- func (inst *CommitBuilder) SetTree(value *git.HyperHeader) error
- type FileHolder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatHyperMessage ¶
func FormatHyperMessage(msg *git.HyperMessage) (string, error)
FormatHyperMessage ...
func FormatProperties ¶
func FormatProperties(tab *git.Properties) string
FormatProperties 将属性表格式化为文本形式
func FormatPropertiesWithSegment ¶
func FormatPropertiesWithSegment(tab *git.Properties) string
FormatPropertiesWithSegment 将属性表格式化为文本形式(支持分段)
func ParseHyperMessage ¶
func ParseHyperMessage(text string) (*git.HyperMessage, error)
ParseHyperMessage ...
func ParseProperties ¶
func ParseProperties(text string, container *git.Properties) (*git.Properties, error)
ParseProperties 函数把参数 text 解析为属性表,存入dest中。
Types ¶
type CommitBuilder ¶
type CommitBuilder struct {
// contains filtered or unexported fields
}
CommitBuilder ...
func (*CommitBuilder) AddExt ¶
func (inst *CommitBuilder) AddExt(src *git.HyperHeader) error
AddExt ...
func (*CommitBuilder) SetAuthor ¶
func (inst *CommitBuilder) SetAuthor(value *git.HyperHeader) error
SetAuthor ...
func (*CommitBuilder) SetCommitter ¶
func (inst *CommitBuilder) SetCommitter(value *git.HyperHeader) error
SetCommitter ...
func (*CommitBuilder) SetContent ¶
func (inst *CommitBuilder) SetContent(content string)
SetContent ...
func (*CommitBuilder) SetParent ¶
func (inst *CommitBuilder) SetParent(value *git.HyperHeader) error
SetParent ...
func (*CommitBuilder) SetTree ¶
func (inst *CommitBuilder) SetTree(value *git.HyperHeader) error
SetTree ...
type FileHolder ¶ added in v0.0.8
type FileHolder struct { File afs.Path io.ReadSeekCloser }
FileHolder ...
Click to show internal directories.
Click to hide internal directories.