Skip to content

Commit c9e6df7

Browse files
scottmcmasterczxtm
authored andcommitted
fix: dreadful commit that I unwisely delegated to Copilot
1 parent 11d3291 commit c9e6df7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

apps/native/src-tauri/src/feedback.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,11 @@ fn get_nix_diff(dir: &str) -> Result<String> {
293293
.collect::<String>())
294294
}
295295

296-
/// Gather a diff-like summary containing only .nix file changes (including untracked).
296+
/// Gather a git diff containing only .nix file changes (including untracked).
297297
///
298-
/// Note: this is assembled from the structured git status change list; it is not a raw `git diff` patch.
299-
/// It will be empty when there are no changes, or if the repo hasn't been initialized.
298+
/// Note: this depends on git status/diff; it will be empty when there are no
299+
/// changes, or if the repo hasn't been initialized.
300+
pub fn gather_changed_nix_files_diff(app: &AppHandle) -> Option<String> {
300301
let config_dir = store::get_config_dir(app).ok()?;
301302
let diff = get_nix_diff(&config_dir).ok()?;
302303
if diff.trim().is_empty() {

0 commit comments

Comments
 (0)