Skip to content

feat: branch-vs-base compare view (BLRID-6) - #7

Open
arpsharm wants to merge 1 commit into
krastogi-in:mainfrom
arpsharm:aiagent/BLRID-6
Open

feat: branch-vs-base compare view (BLRID-6)#7
arpsharm wants to merge 1 commit into
krastogi-in:mainfrom
arpsharm:aiagent/BLRID-6

Conversation

@arpsharm

Copy link
Copy Markdown

Summary

  • Adds Operations.get_branch_diff(branch, base="main") — tip-to-tip diff via existing get_diffs()
  • CLI: minigit compare <branch> [--base <base>]
  • Web: /repo/<name>/compare with branch/base selectors; Compare link on repo detail
  • Tests: 5 new cases in tests/test_operations.py (74 tests pass)

Jira

https://redhat.atlassian.net/browse/BLRID-6

MVP note

Diffs branch tip vs base tip directly (no merge-base). Documented in compare UI help text.

Test plan

  • pytest tests/ — 74 passed
  • Manual: minigit compare feature on a repo with diverged branch
  • Manual: Web Compare page for a registered repo

Introduce Operations.get_branch_diff() and expose it via minigit compare
and a new /compare web route, reusing existing unified-diff presentation.
@arpsharm

Copy link
Copy Markdown
Author

@ShettyGaurav

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