Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add diff --external. Runs external diff command. #727

Merged
merged 3 commits into from
Jul 26, 2024
Merged

Conversation

fujiwara
Copy link
Contributor

Add --external option to diff command.

ecspresso diff invokes the external command with two arguments, "remote" and "local" resource files that are rendered.

The command should exit with status 0. You need to write a wrapper command if it exits with a non-zero status when two files differ (for example, diff (1)).

$ ecspresso diff --external="difft --color=always"

$ ECSPRESSO_DIFF="difft --color=always"

@fujiwara fujiwara changed the title Add diff --external to run external diff command. Add diff --external. Runs external diff command. Jul 22, 2024
@fujiwara fujiwara added the v2.4 label Jul 26, 2024
@fujiwara fujiwara merged commit 1b2d4d4 into v2 Jul 26, 2024
4 checks passed
@fujiwara fujiwara deleted the feature/diff-external branch July 26, 2024 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant