Get the list of undo and redo