code: func (w *Worktree) Status() (Status, error) {
  	var hash plumbing.Hash
  
  	ref, err := w.r.Head()
  	if err != nil && err != plumbing.ErrReferenceNotFound {
  		return nil, err
  	}
  
  	if err == nil {
  		hash = ref.Hash()
  	}
  
  	return w.status(hash)
  }
docs: // Status returns the working tree status.