Replies: 1 comment
-
Duplicate of #534; closing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am attempting to remove a commit from my repository history based on its message or filename by using
commit.skip()
. However, it seems that once the conditional statement evaluates to true, all subsequent commits in the history are skipped, irrespective of the condition.The code I have been using to skip a commit based on its filename is the following:
whereas for skip a commit based on its message content is the following:
The logic of the conditionals is correct, as when I use
it works perfectly fine, affecting only the commits which respect the conditional statement.
Any idea on how I can achieve this?
Beta Was this translation helpful? Give feedback.
All reactions