Add for_each_commit_graft() to iterate all grafts