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

Add repo restack #505

Open
gr4cza opened this issue Nov 30, 2024 · 3 comments
Open

Add repo restack #505

gr4cza opened this issue Nov 30, 2024 · 3 comments
Labels
contributor-friendly (Hopefully) straightforward tasks for folks looking to contribute. enhancement New feature or request

Comments

@gr4cza
Copy link
Contributor

gr4cza commented Nov 30, 2024

After something is merged to main, I tend to check out the trunk and run stack restack to update all stacks at once and keep them fresh.

It would be nice if we could restack everything without needing to check out the trunk itself, allowing us to continue working from where we left off after the restack.

@abhinav
Copy link
Owner

abhinav commented Dec 1, 2024

Possible solution:
The --restack flag for repo sync (#479) could accept an optional value, e.g. --restack=all to restack all tracked branches.
This could also include a configuration override (maybe spice.repoSync.restack) that would allow making that the default.

WDYT?

@abhinav abhinav added the enhancement New feature or request label Dec 1, 2024
@gr4cza
Copy link
Contributor Author

gr4cza commented Dec 1, 2024

I wouldn't tie it completely to the sync it self. It would be more aligned with the other scopes (branch, stack, etc...) if we add a new one to repo.

It makes sense extend the --restack flag to be more versetile.

@abhinav
Copy link
Owner

abhinav commented Dec 1, 2024

Fair point. repo as a new scope for restack also makes sense.

@abhinav abhinav added the contributor-friendly (Hopefully) straightforward tasks for folks looking to contribute. label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor-friendly (Hopefully) straightforward tasks for folks looking to contribute. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants