-
Notifications
You must be signed in to change notification settings - Fork 63
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
stg pick --unapplied
reverses the order of patches in arguments compared to plain stg pick
#174
Comments
stg pick --unapplied
reverses the order of applied patchesstg pick --unapplied
reverses the order of patches in arguments
There is also a bit of an inconsistency now with |
stg pick --unapplied
reverses the order of patches in argumentsstg pick --unapplied
reverses the order of patches in arguments compared to plain stg pick
Good find, @NonLogicalDev. Thanks! Some findings from some history spelunking:
Here's what I think should be done:
|
Replace pick '--unapplied' with '--noapply'. The new name is consistent with the same option in `stg push` and `stg float`. Using this option no longer reverses the order of the picked patches. Picking in the user-provided order seems to be the best approach. Repairs #174 Signed-off-by: Peter Grayson <pete@jpgrayson.net>
Hey @jpgrayson, thank you for lightning speed fix for this issue!!! Something tells me that the logic for the unapplied was probably so that you could pipe the git log listing into the command verbatim. I guess as a quick way to import a set of commits.
But I still believe it is a bit surprising. I suppose the author assumed that only commits will be imported this way. I almost err on the side of pick patch and pick commit should rather be distinct operations, as their semantics differ just enough to be annoying. Worst case I would add a reverse flag to the pick operation to support piping TLDR: This is a definite grey area. Probably not worth spending more effort on this until someone else stubs their toe on this. |
To reproduce:
The text was updated successfully, but these errors were encountered: