add prompt ahead,behind num
Do nothing when gittree is not have revlist.