Skip to content

feat(libra/diff): support imara_diff v0.2.0 and add the extra param --algorithm of diff command#1146

Merged
genedna merged 4 commits into
gitmono-dev:mainfrom
erasernoob:feauture-diff
Jun 23, 2025
Merged

feat(libra/diff): support imara_diff v0.2.0 and add the extra param --algorithm of diff command#1146
genedna merged 4 commits into
gitmono-dev:mainfrom
erasernoob:feauture-diff

Conversation

@erasernoob

Copy link
Copy Markdown
Contributor

fixes issue #1142

  1. upgrade the imrama-diff to latest
  2. add the --algorithm param to diff command to support multiple algorithm

@vercel

vercel Bot commented Jun 21, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 2:54am

Comment thread libra/src/command/diff.rs Outdated
@genedna
genedna requested a review from Copilot June 23, 2025 01:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the imara_diff dependency to v0.2.0 and introduces an extra --algorithm parameter to allow selecting diff algorithms. Key changes include:

  • Updating import paths and API calls to work with the new imara_diff version.
  • Adding the --algorithm parameter in command-line arguments with associated tests.
  • Updating dependency declarations in Cargo.toml and minor adjustments in config.rs.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
libra/src/command/diff.rs Modified diff command to support multiple algorithms and upgraded imara_diff API usage.
libra/Cargo.toml Updated imara_diff dependency syntax to use workspace declaration for v0.2.0.
common/src/config.rs Reordered use statements for consistency.
Cargo.toml Upgraded imara_diff version from 0.1.8 to 0.2.0.

Comment thread libra/src/command/diff.rs Outdated
@genedna
genedna enabled auto-merge June 23, 2025 03:15
@genedna
genedna merged commit 8b0a1d4 into gitmono-dev:main Jun 23, 2025
11 of 13 checks passed
@genedna genedna linked an issue Jun 23, 2025 that may be closed by this pull request
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.

[r2cn] 升级 imara-diff 到最新版本

4 participants