Horizontal pole swing and jump

I am trying to make that character first catch horizontal pole and then either jump or swing and then jump like Prince Of Persia. I try to see tutorial and animation but nothing seems related to this. Please try to help me in this.

So do you have solution for swing pole?