Convenience function: forget `*path` if it is non-nil and overwrite it with a `*Path` for the object corresponding to `(oid, objectType)`. This function can be used if a new largest item was found.
( pr PathResolver, path **Path, oid git.OID, objectType string)
| 217 | // objectType)`. This function can be used if a new largest item was |
| 218 | // found. |
| 219 | func setPath( |
| 220 | pr PathResolver, |
| 221 | path **Path, |
| 222 | oid git.OID, objectType string) { |
| 223 | if *path != nil { |
| 224 | pr.ForgetPath(*path) |
| 225 | } |
| 226 | *path = pr.RequestPath(oid, objectType) |
| 227 | } |
| 228 | |
| 229 | func (s *HistorySize) recordBlob(g *Graph, oid git.OID, blobSize BlobSize) { |
| 230 | s.UniqueBlobCount.Increment(1) |
no test coverage detected