Exemple #1
0
func Quiet(args ...string) bool {
	cmd := gitCmd(args...)
	return cmd.Success()
}
Exemple #2
0
func IsGitDir(dir string) bool {
	cmd := cmd.New("git")
	cmd.WithArgs("--git-dir="+dir, "rev-parse", "--git-dir")
	return cmd.Success()
}
Exemple #3
0
func (r *Range) IsAncestor() bool {
	cmd := gitCmd("merge-base", "--is-ancestor", r.A, r.B)
	return cmd.Success()
}