filter-branch: use git rev-parse -q