When switching from one branch to another in Git, is there any way to retrieve the names of both branches from within the post-checkout hook?
So assuming I were to run the following two commands:
$ git branch
* branch_a
branch_b
master
$ git checkout branch_b
Switched to branch 'branch_b'
I'd be looking for the following two strings (in the post-checkout hook):
"branch_a"
"branch_b"