Documentation
¶
Overview ¶
Package cli provides a subprocess-backed git backend for operations that rely on native git command behavior, including exec, inspection, write, merge, reset, stash, and maintenance workflows.
Index ¶
- type Backend
- func (b *Backend) Checkout(target string, paths ...string) error
- func (b *Backend) CherryPick(revision string) error
- func (b *Backend) CherryPickAbort() error
- func (b *Backend) CherryPickContinue() error
- func (b *Backend) Clean(opts ...model.CleanOption) ([]string, error)
- func (b *Backend) CreateSignedTag(name, target, message string, opts model.SignOptions) error
- func (b *Backend) Describe(revision string) (string, error)
- func (b *Backend) Exec(args ...string) ([]byte, error)
- func (b *Backend) Fsck() error
- func (b *Backend) GC() error
- func (b *Backend) Grep(pattern string, paths ...string) ([]model.GrepMatch, error)
- func (b *Backend) Merge(revision string) error
- func (b *Backend) MergeAbort() error
- func (b *Backend) Prune() error
- func (b *Backend) Rebase(onto string) error
- func (b *Backend) RebaseAbort() error
- func (b *Backend) RebaseContinue() error
- func (b *Backend) Reset(target string, mode model.ResetMode, paths ...string) error
- func (b *Backend) RevParse(spec string) (model.Oid, error)
- func (b *Backend) Show(spec string) ([]byte, error)
- func (b *Backend) StashList() ([]model.StashEntry, error)
- func (b *Backend) StashPop(index int) error
- func (b *Backend) StashPush(message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend provides CLI-backed git operations.
func New ¶
func New(root string, cfg *model.OpenOptions) *Backend
New constructs a CLI backend for root.
func (*Backend) CherryPick ¶
func (*Backend) CherryPickAbort ¶
func (*Backend) CherryPickContinue ¶
func (*Backend) CreateSignedTag ¶
func (b *Backend) CreateSignedTag(name, target, message string, opts model.SignOptions) error
CreateSignedTag creates a signed annotated tag through git tag -s.
func (*Backend) MergeAbort ¶
func (*Backend) RebaseAbort ¶
func (*Backend) RebaseContinue ¶
Click to show internal directories.
Click to hide internal directories.