wei/pull

[FR] New mergeMethod `merge-ff` to only merge when un-fast-forwardable, otherwise hard reset

Aperta

#448 aperta il 31 mag 2022

 (5 commenti) (0 reazioni) (0 assegnatari)JavaScript (720 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (5364 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

A nice mix of two current mergeMethod: hardreset and merge. Effectively simulate the default git merge behavior and make the commit history clean.

A use case: DIYgod/RSSHub has a pull.yml configuration file with mergeMethod: merge to prevent pull[bot] from overriding downstream manipulated forks (https://github.com/DIYgod/RSSHub/pull/9710). In such a case, merge-ff is a better solution.

Guida contributor