Help us shape the future of Go! Take the 2026 Go Developer Survey

jj

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(baseDir string) *Client

func (*Client) ApplySplit

func (c *Client) ApplySplit(plans []SplitPlan, source string) error

func (*Client) CheckInstalled

func (c *Client) CheckInstalled() error

func (*Client) Diff

func (c *Client) Diff(revision string) (string, error)

func (*Client) GetRevisions

func (c *Client) GetRevisions(limit int) ([]RevisionEntry, error)

func (*Client) MoveChanges

func (c *Client) MoveChanges(patch, source, destination string) (err error)

func (*Client) ShowRevision

func (c *Client) ShowRevision(revision string) (*RevisionInfo, error)

func (*Client) Status

func (c *Client) Status() ([]FileStatus, error)

func (*Client) Undo

func (c *Client) Undo() error

type FileStatus

type FileStatus struct {
	Path       string
	ChangeType ChangeType
}

type RevisionEntry

type RevisionEntry struct {
	ChangeID    string
	Description string
}

type RevisionInfo

type RevisionInfo struct {
	ChangeID    string
	Description string
	Author      string
	Date        string
}

type RevisionSpec

type RevisionSpec struct {
	Raw         string
	ChangeID    string
	Description string
	Validated   bool
}

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL