Documentation ¶
Index ¶
- Constants
- func Add(file string) error
- func CallPostCommitHooks(conf *config.Config)
- func CallPreCommitHooks(conf *config.Config)
- func CommitToStdout(commit string) error
- func GetCurrentBranchName() (string, error)
- func GetRepositoryRoot() (string, error)
- func PromptFilesToAdd(out prompt.ConsoleWriter, filesName []string, changedFiles []*ChangedFile) error
- func Remove(file string) error
- func RunGitCommand(params ...string) (string, error)
- func SetTrackStatus(file string, tracked bool) error
- type ChangedFile
- type ChangedFileStatus
Constants ¶
View Source
const (
MODIFIED = ChangedFileStatus("M")
)
Variables ¶
This section is empty.
Functions ¶
func CallPostCommitHooks ¶
func CallPreCommitHooks ¶
func CommitToStdout ¶
func GetCurrentBranchName ¶
func GetRepositoryRoot ¶
func PromptFilesToAdd ¶
func PromptFilesToAdd(out prompt.ConsoleWriter, filesName []string, changedFiles []*ChangedFile) error
func RunGitCommand ¶
func SetTrackStatus ¶
Types ¶
type ChangedFile ¶
type ChangedFile struct { Name string Status ChangedFileStatus Tracked bool }
func GetChangedFiles ¶
func GetChangedFiles() ([]*ChangedFile, error)
type ChangedFileStatus ¶
type ChangedFileStatus string
Click to show internal directories.
Click to hide internal directories.