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