Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitRepo ¶
type GitRepo struct {
// contains filtered or unexported fields
}
func NewGitRepo ¶
NewGitRepo creates new GitRepo struct checks if the given directory path is part of git repository accordingly updates the fields of GitRepo struct and returns it
func (*GitRepo) GetFileCommitLabel ¶
getFileCommitLabel returns the value of 'commit' label for the resources present in the file
The value of the `commit` label for different status of the file is as follows: | Git File Status | Label Value | |---------------------------------------|----------------------| | New untracked file | untracked | | New staged file | staged | | Tracked file with changes in worktree | <commitID>-unstaged | | Tracked file with changes staged | <commitID>-staged | | Tracked file with clean commit | <commitID> |