code: func GetVcsName(dirPath string) string {
  	switch {
  	case base.IsExist(path.Join(dirPath, ".git")):
  		return "git"
  	case base.IsExist(path.Join(dirPath, ".hg")):
  		return "hg"
  	case base.IsExist(path.Join(dirPath, ".svn")):
  		return "svn"
  	}
  	return ""
  }
docs: // GetVcsName checks whether dirPath has .git .hg .svn else return ""