Gits data structure already allows for that, as you can add additional data to a commit after it was made.
You'd consequently only need to implement your custom git gui and extension to visualize this information.
Maybe a good project for the next weekend? Just eg make a prototype tui in golang and see where you end up