Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "0.5.4"
Version is the version of restack currently being used.
Note that semantic versioning in this repository applies to the `restack` executable, not to its library components. These APIs may break at any time without warning.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edit ¶ added in v0.3.0
type Edit struct { // Editor to use for the file. Editor string // Path to file containing initial rebase instruction list. Path string Restacker Restacker Stdin io.Reader Stdout io.Writer Stderr io.Writer }
Edit implements the "restack edit" command.
type Git ¶
type Git interface { ListBranches(ctx context.Context) ([]Branch, error) // RebaseHeadName returns the name of the branch being rebased or an empty // string if we're not in the middle of a rebase. RebaseHeadName(ctx context.Context) (string, error) }
Git provides access to git commands.
type GitRestacker ¶ added in v0.3.0
type GitRestacker struct { // Controls access to Git commands. // // This field is required. Git Git }
GitRestacker restacks instruction lists using the provided Git instance.
type Request ¶ added in v0.3.0
type Request struct { // Name of the git remote. If set, an opt-in section that pushes restacked // branches to this remote will also be generated. // // This field is optional. RemoteName string // Input and output instruction lists. From io.Reader To io.Writer }
Request is a request to process a rebase instruction list.
type SystemGit ¶
SystemGit uses the global `git` command to perform git operations.
func (*SystemGit) ListBranches ¶ added in v0.3.0
ListBranches implements Git.ListBranches.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
restack
See https://github.com/abhinav/restack#readme.
|
See https://github.com/abhinav/restack#readme. |
internal
|
|
editorfake
Package editorfake provides a means of building a configurable fake editor executable.
|
Package editorfake provides a means of building a configurable fake editor executable. |
Click to show internal directories.
Click to hide internal directories.