vim.fn.undotree.entry
Fields6
entry.seq : integer
Undo sequence number. Same as what appears in |:undolist|.
entry.time : integer
Timestamp when the change happened. Use |strftime()| to convert to something readable.
entry.newhead : nil | integer
Only appears in the item that is the last one that was added. This marks the last change and where further changes will be added.
entry.curhead : nil | integer
Only appears in the item that is the last one that was undone. This marks the current position in the undo tree, the block that will be used by a redo command. When nothing was undone after the last change this item will not appear anywhere.
entry.save : nil | integer
Only appears on the last block before a file write. The number is the write count. The first write has number 1, the last one the "save_last" mentioned above.
entry.alt : vim.fn.undotree.entry[] | nil
Alternate entry. This is again a List of undo blocks. Each item may again have an "alt" item.