patch-id: take "commit" prefix as well as "diff-tree" prefix