Documentation
¶
Overview ¶
Package hacks provides Git shortcut commands for common operations.
Index ¶
- func AmendNoEdit() error
- func BlameLine(file string, startLine, endLine int) (string, error)
- func BranchClean(dryRun bool) ([]string, error)
- func DiffWords(args ...string) (string, error)
- func FetchAll() error
- func LogGraph(count int) (string, error)
- func PullRebase() error
- func Push(force bool) error
- func QuickCommit(message string, addAll bool) error
- func StashStaged(message string) error
- func Status() (string, error)
- func Undo() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AmendNoEdit ¶
func AmendNoEdit() error
AmendNoEdit amends the last commit without editing the message. Equivalent to: git commit --amend --no-edit
func BranchClean ¶
BranchClean deletes local branches that have been merged into the current branch. Returns the list of deleted branches.
func QuickCommit ¶
QuickCommit stages all changes and commits with a message. Equivalent to: git add -A && git commit -m "message"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.