commit: make 'commit_graft_pos' non-static