Hi,
I've faced a couple of time the need to shorten the URL to a PostgreSQL commit.
What are you thinking about the bellow redirection?
https://postgr.es/p/$githash Location: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=$githash
Eg.:
https://postgr.es/p/b5810de3f4 Location: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=b5810de3f4
Regards,