File tree Expand file tree Collapse file tree
apps/native/src-tauri/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments