Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有一个具有以下路径的差异:
--- a/b/foo/bar/baz.pl +++ c/foo/bar/baz.pl
有没有办法告诉补丁实用程序差异根处于不同级别?即 -p2 为一个,而 -p1 为另一个。或者在这种情况下是否有任何替代实用程序可以修补?
您是否尝试过使用正确的 -p 来选择其中一个?我认为补丁会同时尝试并应用于实际存在的任何文件。