[Feature request] Only merge commits from a certain timespan ago
vcup opened this issue · comments
Hello there!
I've noticed that sometimes upstream repository maintainers might use force push on their main branches. This can lead to the situation where the commits fetched by pull
might be discarded by upstream later on.
To address this, I propose adding a new feature that allows users to only merge commits that have been around for a specified amount of time. For example, if the timespan is set to three days, then pull
will only merge commits made three days ago or earlier. Alternatively, it might be useful to only merge commits up to HEAD~n, or, if feasible, only merge commits from the n'th most recent push by upstream.
I plan implementing this feature and would love the opportunity to submit a PR for the same.
Please let me know your thoughts on this and if you'd be open to such a contribution.
Thank you!