parsing local branches
refactoring
reading branches from refs/heads also