Skip to content
Snippets Groups Projects
Verified Commit e47eb301 authored by nfontrod's avatar nfontrod
Browse files

src/diff.rs: fix unecessary referencing

parent 4b764b5f
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ pub fn compute_diff(commit1: &str, commit2: &Option<String>) { ...@@ -11,7 +11,7 @@ pub fn compute_diff(commit1: &str, commit2: &Option<String>) {
// Create an archive with the content of the current commit // Create an archive with the content of the current commit
let tmp_name = format!("{}-tmp", commit1); let tmp_name = format!("{}-tmp", commit1);
checkout::silent_commit(String::from("none"), tmp_name.clone(), false); checkout::silent_commit(String::from("none"), tmp_name.clone(), false);
checkout::is_diff(&commit1, &tmp_name, &borg_path, false); checkout::is_diff(commit1, &tmp_name, &borg_path, false);
commit::delete_commit(&tmp_name, &borg_path); commit::delete_commit(&tmp_name, &borg_path);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment