wei/pull

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

開放

#448 建立於 2022年5月31日

 (5 則留言) (0 個反應) (0 位負責人)JavaScript (720 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (5,364 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南