sq-git-policy-diff - Man Page
Shows changes between two policies
Synopsis
sq-git policy diff [Options] OLD NEW
Description
Shows changes between two policies.
If no arguments are given, compares `HEAD`'s policy, and the working tree's policy file (`openpgp-policy.toml`). If one argument is given, the policy in the corresponding commit or file is compared with the working tree's policy file. Otherwise, the policies of the two commits or files are compared.
Options
Subcommand options
- --new-commit=NEW_COMMIT
The new policy as taken from the specified commit
- --new-file=NEW_FILE
The new policy as taken from the specified file
- --old-commit=OLD_COMMIT
The old policy as taken from the specified commit
- --old-file=OLD_FILE
The old policy as taken from the specified file
- OLD
The old policy.
This is first interpreted as a commit. If there is no such commit, it is interpreted as a filename.
When using this command from a script, you should prefer `--old-commit` or `--old-file` instead as they are explicit.
- NEW
The new policy.
This is first interpreted as a commit. If there is no such commit, it is interpreted as a filename.
When using this command from a script, you should prefer `--new-commit` or `--new-file` instead as they are explicit.
Global options
See sq-git(1) for a description of the global options.
Exit Status
The exit code is 0 if the policies are the same, and 1 if they are different.
See Also
For the full documentation see <https://sequoia-pgp.gitlab.io/sequoia-git>.
Version
0.5.0