Function dochy::fs::history::save_history_file [−][src]
pub fn save_history_file(
history_info: &HistoryInfo,
tag: Option<String>,
root: &RootObject
) -> Result<FileNameProps, FsError>
Expand description
calculates the diff from the latest save file(most of the time) and save the diff file.
Arguments
history_info
- info about the directory to place the filetag
- arbitrary string to distinguish files. It’s appended to the file name.- ‘root’ - the object to save
The algorithm to generate diffs is described here