[windows] skip 'UNIX only'
[!exec:tr] skip 'tr not found in $PATH'

# test that chezmoi diff uses textconv
chezmoi --debug diff
cmp stdout golden/diff

-- golden/diff --
diff --git a/file.txt b/file.txt
index b0ebb2af412bf3812b0bf8c5d7b950feb8a701be..4d977287915d918f15ef3df13146c1fa58914d30 100644
--- a/file.txt
+++ b/file.txt
@@ -1 +1 @@
-# PREVIOUS CONTENTS OF FILE.TXT
+# CONTENTS OF FILE.TXT
-- home/user/.config/chezmoi/chezmoi.yaml --
textconv:
- pattern: '**/*.txt'
  command: tr
  args:
  - a-z
  - A-Z
-- home/user/.local/share/chezmoi/file.txt --
# contents of file.txt
-- home/user/file.txt --
# previous contents of file.txt
