Documentation
¶
Index ¶
- func RelativePath(pathFromRoot string) (relativePath string, err error)
- func RepositoryRootAbsolutePath() (path string, err error)
- func Run(args ...string) (stdout *bytes.Buffer, err error)
- func RunCommand(command string, args ...string) (stdout *bytes.Buffer, err error)
- func ShowFileByBranch(file, branch string) (content *bytes.Buffer, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RelativePath ¶
RelativePath returns the relative path from the current working directory to the file specified by the relative path from the repository root.
This is useful for some other Git commands, particularly git status.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.