Skip to content

refac(branch checkout): extract checkout logic into a handler#740

Merged
abhinav merged 1 commit intomainfrom
handler/checkout
Jul 12, 2025
Merged

refac(branch checkout): extract checkout logic into a handler#740
abhinav merged 1 commit intomainfrom
handler/checkout

Conversation

@abhinav
Copy link
Copy Markdown
Owner

@abhinav abhinav commented Jul 12, 2025

This seems like further reinforcement of the handler idea.
The commands that need to use checkout functionality
(and verify branch is restacked after checkout)
now get this for free without (&branchCheckoutCmd{...}).Run(...)
and worrying about the N arguments it takes.

[skip changelog]: no user facing changes

@abhinav
Copy link
Copy Markdown
Owner Author

abhinav commented Jul 12, 2025

Base automatically changed from handler/branch_track to main July 12, 2025 20:42
@abhinav abhinav force-pushed the handler/checkout branch 2 times, most recently from f320aea to db18b93 Compare July 12, 2025 20:44
This seems like further reinforcement of the handler idea.
The commands that need to use checkout functionality
(and verify branch is restacked after checkout)
now get this for free without `(&branchCheckoutCmd{...}).Run(...)`
and worrying about the N arguments it takes.

[skip changelog]: no user facing changes
@abhinav abhinav force-pushed the handler/checkout branch from db18b93 to 0872f7e Compare July 12, 2025 20:46
@abhinav abhinav merged commit b271f9f into main Jul 12, 2025
12 checks passed
@abhinav abhinav deleted the handler/checkout branch July 12, 2025 20:59
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