branch: limit length of head/branch to 7 chars

This does not make it configurable, but uses a maxlength of 7, which covers `master` and `develop`.

Fixes https://github.com/bling/vim-airline/issues/462