Documentation
¶
Index ¶
- func CountChanges(status git.Status) (int, int, int, int)
- func GetBranchName(repo *git.Repository) (string, error)
- func GetRepoName(repoPath string) (string, error)
- func GetRepoOwnerAndName(repo *git.Repository) (string, string, error)
- func IsGitRepository(path string) bool
- func ShowSpinner(repoName string, done chan bool)
- func SshAuth() (*ssh.PublicKeys, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountChanges ¶
countChanges counts the number of modified, added, deleted, and untracked files in the repository.
func GetBranchName ¶
func GetBranchName(repo *git.Repository) (string, error)
getBranchName retrieves the current branch name.
func GetRepoName ¶
func GetRepoOwnerAndName ¶
func GetRepoOwnerAndName(repo *git.Repository) (string, string, error)
getRepoOwnerAndName retrieves the repository owner and name from the local repository's remote URL
func IsGitRepository ¶
isGitRepository checks if a directory is a Git repository.
func ShowSpinner ¶
ShowSpinner displays a spinner in the terminal until done is signaled
func SshAuth ¶
func SshAuth() (*ssh.PublicKeys, error)
sshAuth sets up SSH authentication using a private key file.
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.