code: func (d *DotGit) hasIncomingObjects() bool {
  	if !d.incomingChecked {
  		directoryContents, err := d.fs.ReadDir(objectsPath)
  		if err == nil {
  			for _, file := range directoryContents {
  				if strings.HasPrefix(file.Name(), "incoming-") && file.IsDir() {
  					d.incomingDirName = file.Name()
  				}
  			}
  		}
  
  		d.incomingChecked = true
  	}
  
  	return d.incomingDirName != ""
  }
docs: // hasIncomingObjects searches for an incoming directory and keeps its name
  // so it doesn't have to be found each time an object is accessed.