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

gs commit float, sink: Send a commit up or down the stack #560

Open
abhinav opened this issue Feb 1, 2025 · 0 comments
Open

gs commit float, sink: Send a commit up or down the stack #560

abhinav opened this issue Feb 1, 2025 · 0 comments
Labels
area/git Issues heavy on local Git management. enhancement New feature or request

Comments

@abhinav
Copy link
Owner

abhinav commented Feb 1, 2025

The git commit float and git commit sink commands will allow sending a commit from the current branch up or down the stack.

Things to decide:

  1. Which commits can be moved like this?
  2. Can you float/sink to any upstack/downstack branch, or only the next one?

For (1), my first reaction is:
git commit float can only float the top-most commit of the branch,
and git commit sink can only sink the bottom-most commit of the branch,
with the idea that if a commit in the middle of the branch has to be moved,
you should gs branch edit to move it to one of the extremes first.

For (2), I think you should be able to select any of the upstack/downstack branches.

Opinions welcome.

@abhinav abhinav added enhancement New feature or request new command area/git Issues heavy on local Git management. and removed new command labels Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/git Issues heavy on local Git management. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant