Merge pull request #50 from jjlin/contrib

Fix branch name extraction
Unit test for bugfix in 731b4ea
Merge pull request #51 from jjlin/bash-completion

Bash completion