Skip to content

feat: enable merge-base option when compare working tree with specific ref #590

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KEY60228
Copy link

Related Issue: #589

Usage

" Compare working tree against merge-base of origin/main and HEAD
:DiffviewOpen --merge-base origin/main

Implementation Details

  • The flag only applies when a single revision is specified
  • Uses git merge-base HEAD to find the common ancestor
  • Falls back to using the revision directly if merge-base computation fails
  • Maintains backward compatibility with existing behavior

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.

1 participant