// IsClean will check whether the package contains modified file, but it allows the existence of untracked file.
IsClean will check whether the package contains modified file, but it allows the existence of untracked file.
// IsClean will check whether the package contains modified file but it allows the existence of untracked file .
func (this *GitPkg) IsClean() (bool, error) {
	cmd, err := this.Git("status", "--porcelain", "--untracked-files=no")
	if err != nil {
		return false, err
	}
	return cmd.Stdout.(*bytes.Buffer).String() == "", nil
}
func ( this * GitPkg ) IsClean ( ) ( bool , error ) { cmd , err := this . Git ( " " , " " , " " ) if err != nil { return false , err } return cmd . Stdout . ( * bytes . Buffer ) . String ( ) == " " , nil }
IsClean will check whether the package contains modified file, but it allows the existence of untracked file.
IsClean will check whether the package contains modified file but it allows the existence of untracked file .