Optionally throw if can't find commit(s)