Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffHEAD ¶
DiffHEAD returns a unified diff between HEAD and the working tree for a single file.
func LastCommitSummary ¶
LastCommitSummary returns short hash and subject of last commit.
func StageFiles ¶
StageFiles stages the provided file paths.
Types ¶
type FileChange ¶
FileChange represents a changed file in the repo.
func ChangedFiles ¶
func ChangedFiles(repoRoot string) ([]FileChange, error)
ChangedFiles lists files changed relative to HEAD, combining staged, unstaged, and untracked.
Click to show internal directories.
Click to hide internal directories.