Reduce clutter by commit hashes (e.g. only show a prefix) and fix fallback branch name when no hash is known