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

Bug fix: dolt_commit_diff support for detached head mode #8566

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

fulghum
Copy link
Contributor

@fulghum fulghum commented Nov 15, 2024

When we added support for showing diffs for the STAGED root through dolt_commit_diff_ system tables, we didn't take into account that in detached head mode, there wouldn't be a valid staged root. This change detects if we're in detached head mode and replaces the staged root with the root of the detached head.

Copy link
Contributor

@jycor jycor left a comment

Choose a reason for hiding this comment

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

LGTM

@coffeegoddd
Copy link
Contributor

@fulghum DOLT

comparing_percentages
100.000000 to 100.000000
version result total
623ff4f ok 5937457
version total_tests
623ff4f 5937457
correctness_percentage
100.0

@fulghum fulghum merged commit 78627a2 into main Nov 15, 2024
34 of 35 checks passed
@fulghum fulghum deleted the fulghum/detached-head branch November 15, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants