Documentation
¶
Index ¶
Constants ¶
View Source
const ( SegmentTypeContext = "CONTEXT" SegmentTypeRemoved = "REMOVED" SegmentTypeAdded = "ADDED" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Changeset ¶
func (Changeset) ForEachComment ¶
type Comment ¶
type Comment struct {
Id int64
Version int
Text string
CreatedDate UnixTimestamp
UpdatedDate UnixTimestamp
Comments CommentsTree
Author struct {
Name string
EmailAddress string
Id int
DisplayName string
Active bool
Slug string
Type string
}
Anchor CommentAnchor
PermittedOperations struct {
Editable bool
Deletable bool
}
Indent int
Parented bool
}
type CommentAnchor ¶
type CommentsTree ¶
type CommentsTree []*Comment
type Diff ¶
type Diff struct {
Truncated bool
Source struct {
Parent string
Name string
ToString string
}
Destination struct {
Parent string
Name string
ToString string
}
Hunks []*Hunk
FileComments CommentsTree
LineComments CommentsTree
Note string
// Lists made only for Stash API compatibility.
// TODO: move it to `ash`.
Attributes struct {
FromHash []string
ToHash []string
}
}
func (Diff) ForEachLine ¶
func (Diff) GetHashFrom ¶
type UnixTimestamp ¶
type UnixTimestamp int
func (UnixTimestamp) String ¶
func (u UnixTimestamp) String() string
Click to show internal directories.
Click to hide internal directories.