How to view a file in the past

In the VSCode extension, the user can select a pijul change in the changelog of the current channel, and then select a file changed by that pijul change. When he does that, I would like to show a diff panel showing the content of the file before and after that pijul change (instead, it currently shows the current (!) version of the file: it’s not very useful)

To achieve that, I need to generate the content of the file before and after the pijul change. I could not find a command that would allow me to do this. Is it at all possible?

Here are some relevant topics, from Nest, here, and Zulip:
#833 missing command to show a file at a certain state

order of changes with push and pull

What is the state identifier used for?

tooling discussion

revisiting old versions

feature complete?

Thank you very much for the info. This is going in the right direction. I’ll wait until it is implemented.