code: func (g *Git) HasStagedChanges(ctx context.Context) bool {
  	if err := g.Cmd(ctx, "gitDiffIndex", "diff-index", "--quiet", "HEAD"); err != nil {
  		return true
  	}
  	return false
  }
docs: // HasStagedChanges returns true if there are any staged changes which can be committed