Unfortunately, the vc-mode in my mode-line is not being updated when checking out a branch, it still points to the older branch. revert all open buffers fixes than but I can't find a hook to attach the reverting to.
Is there a way to execute a function whenever I do a checkout through Magit?