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

Branches: REPL backslash commands for branches #1284

Merged
merged 9 commits into from
Apr 16, 2024

Conversation

quinchs
Copy link
Contributor

@quinchs quinchs commented Apr 4, 2024

Fixes #1263

@quinchs
Copy link
Contributor Author

quinchs commented Apr 12, 2024

Also fixes #1275

@quinchs quinchs linked an issue Apr 12, 2024 that may be closed by this pull request
fn key(&self) -> &MigrationKey;
fn parent(&self) -> anyhow::Result<&str>;
fn id(&self) -> anyhow::Result<&str>;
fn statements<'a>(&'a self) -> Self::StatementsIter<'a>;
fn statements(&'a self) -> T;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, this is bizzare. How'd you find the linked issue?

It doesn't seem obvious that these two problems are connected.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

a lot of debugging ended up the codepath in branch commands that used that trait, and some cheeki googling

@quinchs quinchs marked this pull request as ready for review April 12, 2024 21:02
@quinchs
Copy link
Contributor Author

quinchs commented Apr 12, 2024

Adding other branch commands is simple by adding them to the BranchingCmd enum

@quinchs quinchs requested a review from aljazerzen April 12, 2024 21:03
fn key(&self) -> &MigrationKey;
fn parent(&self) -> anyhow::Result<&str>;
fn id(&self) -> anyhow::Result<&str>;
fn statements<'a>(&'a self) -> Self::StatementsIter<'a>;
fn statements(&'a self) -> T;
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, this is bizzare. How'd you find the linked issue?

It doesn't seem obvious that these two problems are connected.

src/commands/execute.rs Outdated Show resolved Hide resolved
@aljazerzen aljazerzen merged commit 318b321 into master Apr 16, 2024
16 checks passed
@aljazerzen aljazerzen deleted the branches/list-branches branch April 16, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants