Versions in this module Expand all Collapse all v0 v0.5.4 Aug 31, 2022 v0.5.3 Feb 19, 2022 v0.5.2 Oct 28, 2021 v0.5.1 Sep 18, 2021 v0.5.0 Sep 13, 2021 v0.4.0 Aug 15, 2021 v0.3.1 Apr 28, 2020 v0.3.0 Apr 28, 2020 Changes in this version + type Branch struct + Hash string + Name string + type Edit struct + Editor string + Path string + Restacker Restacker + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + func (e *Edit) Run(ctx context.Context) error type Git + ListBranches func(ctx context.Context) ([]Branch, error) + type GitRestacker struct + Git Git + func (r *GitRestacker) Restack(ctx context.Context, req *Request) error + type Request struct + From io.Reader + RemoteName string + To io.Writer type Restacker + Restack func(context.Context, *Request) error + type Setup struct + PrintScript bool + Stderr io.Writer + Stdout io.Writer + func (s *Setup) Run(ctx context.Context) error type SystemGit + Getenv func(string) string + func (*SystemGit) ListBranches(ctx context.Context) ([]Branch, error) v0.2.0 Mar 14, 2020 v0.1.3 Feb 27, 2019 v0.1.2 Oct 30, 2017 v0.1.1 Oct 14, 2017 v0.1.0 Oct 14, 2017 Changes in this version + const Version + type FS interface + FileExists func(path string) bool + MkdirAll func(path string) error + ReadFile func(path string) (io.ReadCloser, error) + RemoveAll func(path string) error + Rename func(old, new string) error + TempDir func(prefix string) (string, error) + WriteExecutableFile func(path string) (io.WriteCloser, error) + WriteFile func(path string) (io.WriteCloser, error) + var DefaultFilesystem FS = defaultFS{} + type Git interface + ListHeads func(ctx context.Context) (map[string][]string, error) + RebaseHeadName func(ctx context.Context) (string, error) + SetGlobalConfig func(ctx context.Context, name, value string) error + type Restacker struct + FS FS + Git Git + RemoteName string + func (r Restacker) Run(ctx context.Context, dst io.Writer, src io.Reader) error + type SystemGit struct + func NewSystemGit(fs FS) *SystemGit + func (*SystemGit) ListHeads(ctx context.Context) (map[string][]string, error) + func (*SystemGit) SetGlobalConfig(ctx context.Context, name, value string) error + func (g *SystemGit) RebaseHeadName(ctx context.Context) (string, error)