-
Notifications
You must be signed in to change notification settings - Fork 61
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
idea: stg refresh
demystifying what will be refreshed
#180
Comments
stg refresh
demystifying what will refreshedstg refresh
demystifying what will be refreshed
My initial reactions to this are:
|
Hey @jpgrayson thank you for going over this! Your points are mostly valid but I wanted to give my perspective on the second one:
The slight trouble here is that
Previewing
Previewing
|
I do somewhat agree that contrib could be a good alternative, but in an ideal world it would be nice to have a refresh But implementing that means implementing console UI which would further bloat stg, so to make the job of contrib script simpler it could be nice to allow a dry run of |
Yes, that's one of my concerns. Currently StGit does all of it's "interactive" business indirectly via the user's editor. Adding full-fledged console UI features to StGit would be a Whole New Thing. I'm not categorically opposed to having such interfaces baked into StGit, but I would want to have a bit of a comprehensive gameplan for console UI features and not just add a one-off.
I'm thinking about what a Maybe there are two features here: I should say that I generally like the idea of adding non-interactive capabilities to |
The fact that
stg refresh
has subtle differences to git is fine, but it is also sometimes difficult to reason about. And leads to user confusion like [#161].I have myself often ran into issues when I accidentally refreshed something into the patch I did not mean to. I have created helper scripts to wrap operations:
stg refresh --index
stg refresh
That show the changes that will be applied to the current patch. They are not bulletproof but they work most of the time:
https://gist.github.com/NonLogicalDev/8b2d77563688f6495f233704e5edd947#file-stg-refresh-utils-zsh
The result looks kind of like this:
I wonder if we could add
--preview-diff
to thestg refresh
operations to allow the user to verify the changes that are about to be made to the patch.The text was updated successfully, but these errors were encountered: