When I git switch foo I would like to know if I need to rebase it onto master. Is there any way to make git switch foo check if foo is behind master and print a message like
Current branch foo is up to date.
or
Current branch foo is 6 commits behind `master`
after it has switched? Ideally I run the exact same command - git switch (so it doesn't mess up my muscle memory when working on different systems) and it only runs when I actually do git switch - anything that runs on every prompt will be too slow.