简体   繁体   English

在Linux中运行补丁时出现的问题

[英]Issues while running the patch in linux

I tried this steps in order to create a patch 我尝试了此步骤以创建补丁

code change for each version update 每个版本更新的代码更改

jungels.net/articles/diff-patch-ten-minutes.html jungels.net/articles/diff-patch-ten-minutes.html

  • Can able to create a patch 可以创建补丁

  • if i run the patch,it replaces the code straight away.....Incase if the updated version has some code changes,it doesn't bothers,it will straight away copy the modified code what i have.... 如果我运行补丁,它将立即替换代码.....如果更新后的版本有一些代码更改,它不会打扰,它将立即复制修改后的代码。...

    How to overcome this issue?(ie::Need to have the updated version code changes also) 如何解决此问题?(即::还需要更新版本代码)

Use version control. 使用版本控制。 As already noted. 如前所述。

If you really taking about sphinxsearc, its available via SVN https://code.google.com/p/sphinxsearch/source/checkout 如果您真的对sphinxsearc感兴趣,可以通过SVN https://code.google.com/p/sphinxsearch/source/checkout获得

So checkout a copy. 因此签出一份副本。 Make any changes as needed to your local working copy. 根据需要对本地工作副本进行任何更改。 Can then just run svn update which will download the latest changes from teh repository, but wont discard your local edits. 然后可以只运行svn update ,它将从存储库下载最新的更改,但不会放弃本地编辑。

(Can also use SVN to create 'patch' files directly. to keep a record of your changes against the current version of sphinx) (也可以使用SVN直接创建“补丁”文件。以记录对当前狮身人面像版本所做的更改)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM