Documentation ¶
Overview ¶
Package gut (git utils) implements some Helper Functions around the `git` Library to easier interact with the Repository.
Deprecated: The gut package is marked as deprecated since we will drop the git dependency in the future.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindGitRoot
deprecated
FindGitRoot returns the last found `.git` Directory from the base Means if your are in $PATH/cmd/test and the Git Root is $PATH/ FuncGitRoot will return $PATH/ It will return an Error if the `.git/` Directory could not be found.
Deprecated: The gut package is marked as deprecated since we will drop the git dependency in the future.
func GetAuthorName
deprecated
func GetCurrentBranchFromRepository
deprecated
func GetCurrentBranchFromRepository(repository *git.Repository) (string, error)
GetCurrentBranchFromRepository does return the current checked out branch from the repository.
Deprecated: The gut package is marked as deprecated since we will drop the git dependency in the future.
Types ¶
This section is empty.