Is your feature request related to a problem? Please describe.
There is a repeating pattern in some subcommands that would also repeat for some of the other ideas that I have for more subcommands: Check the current commit ID, do some git operation, check the files that were touched by this git operation and play them back. Something like this is used by pick and reset and I was thinking about implementing a revert that would also do the same.
Describe the solution you'd like
If the above pattern is used by one specific subcommand, we no longer need to wrap every useful git command separately. This would allow something like
Is your feature request related to a problem? Please describe. There is a repeating pattern in some subcommands that would also repeat for some of the other ideas that I have for more subcommands: Check the current commit ID, do some git operation, check the files that were touched by this git operation and play them back. Something like this is used by
pick
andreset
and I was thinking about implementing arevert
that would also do the same.Describe the solution you'd like If the above pattern is used by one specific subcommand, we no longer need to wrap every useful git command separately. This would allow something like
The rollback-mechanism including stashing and conflict checking with unstaged files must be ensured to still work.