gitcmds: move ref verification to the DiffStaged command