Documentation
¶
Index ¶
- func Add(files []string, writer io.Writer) error
- func ApplyPatches(paths []string, writer io.Writer) error
- func Commit(message string, writer io.Writer) error
- func FindCommitByPattern(pattern string) (string, error)
- func FormatPatch(revisionRange, outDir string, writer io.Writer) error
- func IsClean() (bool, error)
- func SwitchToNewBranch(branch string, writer io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add adds a list of files to the current repo with `git add <files>`.
The combined output of the command is written to the given writer.
func ApplyPatches ¶
ApplyPatches applies a list of patches to the current repo with `git am <paths>`.
The combined output of the command is written to the given writer.
func Commit ¶
Commit commits changes to the current repo with `git commit <message>`.
The combined output of the command is written to the given writer.
func FindCommitByPattern ¶
FindCommitByPattern searches the git log for the provided pattern and returns the first commit hash it finds.
func FormatPatch ¶
FormatPatch formats a revision range as patches and writes them to the provided output directory.
The combined output of the command is written to the given writer.
Types ¶
This section is empty.