git branch: avoid unnecessary object lookups