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 --context flag for diffs. #3179

Merged
merged 1 commit into from
Mar 5, 2024
Merged

Conversation

algmyr
Copy link
Collaborator

@algmyr algmyr commented Mar 2, 2024

Allows specifying the number of lines of context to show around diffs. The logic was already in place, just some plumbing was needed.

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

@algmyr algmyr force-pushed the push-ywxnktlkvryr branch 6 times, most recently from 27f5d15 to 2957622 Compare March 2, 2024 06:56
Copy link
Collaborator

@yuja yuja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

cli/src/diff_util.rs Outdated Show resolved Hide resolved
cli/src/diff_util.rs Outdated Show resolved Hide resolved
cli/src/diff_util.rs Show resolved Hide resolved
@algmyr algmyr force-pushed the push-ywxnktlkvryr branch 3 times, most recently from 4b7001c to a2d698f Compare March 2, 2024 21:03
Allows specifying the number of lines of context to show around diffs.
The logic was already in place, just some plumbing was needed.
Copy link
Collaborator

@yuja yuja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@algmyr algmyr merged commit 38b27de into martinvonz:main Mar 5, 2024
16 checks passed
@algmyr algmyr deleted the push-ywxnktlkvryr branch March 6, 2024 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants