Jeff King [off-list ref] writes:
I noticed I ignored the "discover" and "delete" parts of your paragraph.
As far as deletion goes, I think we can ignore it; expiring all entries
is equivalent.
...
In other words, I want to focus on getting the ref-level plumbing right,
and then we can care about the porcelain later.
Yeah, I agree that is a reasonable way forward. for-each-ref with a
new option (--include-dead or something) can wait.