Every time I use
M-x magit-status b b to checkout a different branch, the projectile cache is of course out of date. I then use
M-x projectile-invalidate-cache to force projectile to rebuild its cache and that does work fine.
How could I automate this? I have no idea how to check which
magit-xyz command is triggered when using b b in
magit-status. And even if I knew: How would I transparently "overwrite" that command to first call its previous definition and then