我在使用 git am 时遇到了一些问题。我有一个由 git format-patch 制作的补丁,它通常运行良好。
现在我刚刚合并了几件事,而 git 失败了:
Applying: Improve speed of computes
error: patch failed: product_cost_incl_bom/models/product_product.py:38
error: product_cost_incl_bom/models/product_product.py: patch does not apply
那我怎么知道为什么补丁不适用……现在奇怪的是:
然后我这样做了:
$: patch -p1 .git/rebase-apply/patch
patching file product_cost_incl_bom/__openerp__.py
patching file product_cost_incl_bom/models/mrp_bom.py
patching file product_cost_incl_bom/models/product_product.py
Hunk #2 succeeded at 39 with fuzz 1
那么为什么会git am
失败但patch
不会。什么是绒毛1?