Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGitignoreToWorktree ¶
AddGitignoreToWorktree adds the exclude paths in the .gitignore file to the worktree. This is a workaround for https://github.com/go-git/go-git/issues/597. If we don't call this before doing add all then the ignore patterns won't be respected.
N.B this doesn't work with nested .gitignore files.
func LocateRoot ¶
LocateRoot locates the root of the git repository at path. Returns empty string if not a git repo.
Types ¶
Click to show internal directories.
Click to hide internal directories.