🔨 Refactor repository diffing

- Update repository diffs to include untracked content
- Recurse into untracked directories
- Include ignored files in diffs

[src-tauri/src/repositories/repository.rs]
- Include untracked content in diffs
- Recurse into untracked directories
- Include ignored files in diffs
This commit is contained in:
Kiril Videlov 2023-04-11 15:28:43 +02:00 committed by Kiril Videlov
parent 00d5933c20
commit 2b71cfd2ef

View File

@ -173,6 +173,7 @@ impl Repository {
let mut opts = DiffOptions::new();
opts.recurse_untracked_dirs(true)
.include_untracked(true)
.show_untracked_content(true)
.include_ignored(true);
let diff = repo.diff_tree_to_workdir(Some(&tree), Some(&mut opts))?;