You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I relatively frequently have some unstaged changes that I thought I staged. I run stg new --refresh --index --message "great work!" and continue. But I didn't see that the patch was now empty! I've even created empty pull requests this way, being happy to see them pass CI only to found out nothing changed....
I'd say running stg refresh or --refresh should error when it results in not making any changes to the patch, as I don't see a case where this could ever be the intention. If there is I'd be happy with a warning too.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I relatively frequently have some unstaged changes that I thought I staged. I run
stg new --refresh --index --message "great work!"and continue. But I didn't see that the patch was now empty! I've even created empty pull requests this way, being happy to see them pass CI only to found out nothing changed....I'd say running
stg refreshor--refreshshould error when it results in not making any changes to the patch, as I don't see a case where this could ever be the intention. If there is I'd be happy with a warning too.Beta Was this translation helpful? Give feedback.
All reactions