deptool diff¶
deptool diff [--stat | --word-diff | --word-diff-regex <regex>]
[--app <apps>]... [--host <hosts>]...
[--] [<dir>]
Description¶
Show the diff between the config tree in <dir>, and the cluster’s currently known state. This is based on the local tracking refs in the store, so this command runs entirely offline. Use deptool sync to refresh the local view of the cluster when the diff shows unexpected changes. The diff shown by this command is the same as what deptool deploy shows when you press d at the plan confirmation prompt.
See also deptool deploy for details about the cluster config tree directory <dir>. As with other commands, diff defaults to the last-used cluster when you omit it.
Options¶
--app <apps>¶
Limit the diff to the listed apps. Can be provided multiple times, and supports a comma-separate list of apps too. See also --app in deptool deploy.
--host <hosts>¶
Limit the diff to the listed hosts. Can be provided multiple times, and supports a comma-separated list of hosts too. For example, in a cluster with hosts web1 through web5, passing --host web1,web2 --host web3 would exclude web4 and web5 from the diff even if they had changes. See also --host in deptool deploy.
--stat¶
Pass --stat to git diff to produce a summarized diffstat instead of a full line-based diff.
--word-diff¶
Pass --word-diff to git diff, which shows changed words within a line, rather than marking an entire line as removed and added. By default, Git splits lines on whitespace, but this can be changed with --word-diff-regex. See the Git manual for details.
--word-diff-regex <regex>¶
Pass --word-diff-regex to git diff. Git then uses <regex> to decide what a word is, instead of considering runs of non-whitespace to be a word. See the Git manual for details.
Environment¶
PAGER¶
This command respects the PAGER environment variable, and defaults to less when no pager is set.