Documentation
¶
Index ¶
- func CreateCommit(path, message string) error
- func GetAllBranches(path string) ([]string, error)
- func GetBranchDiff(path, fromBranch, toBranch string) (string, error)
- func GetCurrentBranch(path string) (string, error)
- func GetDiff(path string, staged bool) (string, error)
- func GetDiffForMode(path string, mode DiffMode) (string, error)
- func GetRemoteBranches(path string) ([]string, error)
- func GetStagedFiles(path string) ([]string, error)
- func HasStagedChanges(path string) (bool, error)
- func IsGitRepository(path string) bool
- func PushBranch(path string) error
- func StageAllFiles(path string) error
- type DiffMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCommit ¶ added in v0.2.0
CreateCommit creates a commit with the given message
func GetAllBranches ¶ added in v0.2.0
GetAllBranches returns a list of all branches (local and remote)
func GetBranchDiff ¶ added in v0.2.0
GetBranchDiff returns the diff between two branches
func GetCurrentBranch ¶ added in v0.2.0
GetCurrentBranch returns the current branch name
func GetDiffForMode ¶
GetDiffForMode retrieves the git diff for a specific diff mode
func GetRemoteBranches ¶ added in v0.2.0
GetRemoteBranches returns a list of remote branches
func GetStagedFiles ¶ added in v0.2.0
GetStagedFiles returns the list of staged files
func HasStagedChanges ¶ added in v0.2.0
HasStagedChanges checks if there are any staged changes
func IsGitRepository ¶
IsGitRepository checks if the given path is within a git repository
func PushBranch ¶ added in v0.2.0
PushBranch pushes the current branch to the remote repository
func StageAllFiles ¶ added in v0.2.0
StageAllFiles stages all files in the repository
Types ¶
Click to show internal directories.
Click to hide internal directories.