Add addToHistory parameter to rejectChunk method #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/support-config-addtohistory"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In my case, after rejecting the incoming content, I don't want to see the rejected content again by pressing
cmd+zto undo, so I think maybe add theaddToHistoryparameter to therejectChunk()is a way. although I don't know whether it's a good idea for everyone. Or do we have a better way to make reject chunk un-revertable?How I use it:
Oh, just after submitting the PR, I got a new idea suddenly, maybe we can use the transactionFilter to hook the
reverttr, for example:Let me try whether it works.
Update: tried and works fine.
Yes, I think a transaction filter (or transaction extender) is a reasonable way to do this, and there's no special feature needed for it.
Pull request closed