# test that chezmoi apply --dry-run --verbose does not show scripts when scripts are excluded from diffs
chezmoi apply --dry-run --verbose
[!windows] cmp stdout golden/apply.diff
[windows] cmp stdout golden/apply-windows.diff

chhome home2/user

# test that chezmoi apply --dry-run --force --verbose does not show removes when removes are excluded from diffs
chezmoi apply --dry-run --force --verbose
! stdout .

-- golden/apply.diff --
diff --git a/.file b/.file
new file mode 100644
index 0000000000000000000000000000000000000000..8a52cb9ce9551221716a53786ad74104c5902362
--- /dev/null
+++ b/.file
@@ -0,0 +1 @@
+# contents of .file
-- golden/apply-windows.diff --
diff --git a/.file b/.file
new file mode 100666
index 0000000000000000000000000000000000000000..8a52cb9ce9551221716a53786ad74104c5902362
--- /dev/null
+++ b/.file
@@ -0,0 +1 @@
+# contents of .file
-- home/user/.config/chezmoi/chezmoi.toml --
[diff]
    exclude = ["scripts"]
-- home/user/.local/share/chezmoi/dot_file --
# contents of .file
-- home/user/.local/share/chezmoi/run_script --
# contents of script
-- home2/user/.config/chezmoi/chezmoi.yaml --
diff:
    exclude:
    - remove
-- home2/user/.file --
# contents of .file
-- home2/user/.local/share/chezmoi/.chezmoiremove --
.file
