forked from twpayne/chezmoi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Apply diff.exclude to all diffs
- Loading branch information
Showing
6 changed files
with
137 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# 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 | ||
[windows] cmp stdout golden/apply-windows | ||
|
||
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 --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 --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 |