src/server/pfs/server/driver.go
func provenantOnInput(provenance []*pfs.CommitProvenance) bool {
	provenanceCount := len(provenance)
	for _, p := range provenance {
		// in particular, we want to exclude provenance on the spec repo (used e.g. for spouts)
		if p.Commit.Repo.Name == ppsconsts.SpecRepo {
			provenanceCount--
			break
		}
	}
	return provenanceCount > 0
}
func provenantOnInput(provenance []*pfs.CommitProvenance) bool {
	provenanceCount := len(provenance)
	for _, p := range provenance {
		// in particular, we want to exclude provenance on the spec repo (used e.g. for spouts)
		if p.Commit.Repo.Name == ppsconsts.SpecRepo {
			provenanceCount--
			break
		}
	}
	return provenanceCount > 0
}
func provenantOnInput ( provenance [ ] * pfs . CommitProvenance ) bool { provenanceCount := len ( provenance ) for _ , p := range provenance { // in particular, we want to exclude provenance on the spec repo (used e.g. for spouts) if p . Commit . Repo . Name == ppsconsts . SpecRepo { provenanceCount -- break } } return provenanceCount > 0 }
// this is a helper function to check if the given provenance has provenance on an input branch
this is a helper function to check if the given provenance has provenance on an input branch