Documentation
¶
Index ¶
- type ChangeType
- type Client
- func (c *Client) ApplySplit(plans []SplitPlan, source string) error
- func (c *Client) CheckInstalled() error
- func (c *Client) Diff(revision string) (string, error)
- func (c *Client) GetRevisions(limit int) ([]RevisionEntry, error)
- func (c *Client) MoveChanges(patch, source, destination string) error
- func (c *Client) ShowRevision(revision string) (*RevisionInfo, error)
- func (c *Client) Status() ([]FileStatus, error)
- func (c *Client) Undo() error
- type FileStatus
- type RevisionEntry
- type RevisionInfo
- type RevisionSpec
- type SplitDestination
- type SplitDestinationType
- type SplitPlan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeType ¶
type ChangeType int
const ( ChangeTypeModified ChangeType = iota ChangeTypeAdded ChangeTypeDeleted ChangeTypeRenamed )
func (ChangeType) String ¶
func (ct ChangeType) String() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CheckInstalled ¶
func (*Client) GetRevisions ¶
func (c *Client) GetRevisions(limit int) ([]RevisionEntry, error)
func (*Client) MoveChanges ¶
func (*Client) ShowRevision ¶
func (c *Client) ShowRevision(revision string) (*RevisionInfo, error)
func (*Client) Status ¶
func (c *Client) Status() ([]FileStatus, error)
type FileStatus ¶
type FileStatus struct {
Path string
ChangeType ChangeType
}
type RevisionEntry ¶
type RevisionInfo ¶
type RevisionSpec ¶
type SplitDestination ¶
type SplitDestination struct {
Type SplitDestinationType
ChangeID string
Description string
}
type SplitDestinationType ¶
type SplitDestinationType int
const ( SplitDestExistingRevision SplitDestinationType = iota SplitDestNewCommit )
type SplitPlan ¶
type SplitPlan struct {
Tag rune
Patch string
Destination SplitDestination
}
Click to show internal directories.
Click to hide internal directories.