Delphi RES文件和Git [英] Delphi RES files and Git
问题描述
msbuild
自动构建的。 最大的问题是RES文件。其中一些在每次重建我的应用程序时都会被更新,有些不是。有些有* .rc来源,有些没有。我无法忽略所有的res文件(.gitignore),因为没有资源,我的项目将无法构建。此外,我不能包含res文件 - 它们从构建到构建都是改变的,我不想在diff中看到它们。
你的* .res文件在Git下?任何建议?
我将项目RES文件保存在git中(与dpr名称匹配)。
我相信,项目RES文件每次建立的唯一原因是如果您有增量版本号码设置,这对我来说意味着你需要保持res在源代码控制或者你不关心内部版本号,所以你应该关闭该选项。
我还有从RC构建的RES文件,它会更改每个编译,所以我有一个gitignore * .res然后我添加$ code> git add -f project.res 为项目RES文件
I have a big project written in Delphi and I want to manage its sources using Git. I created Git repository, which includes my application's sources and 3rd party components. All that stuff is automatically building using msbuild
.
The biggest problem is RES files. Some of them are updated every time I rebuild my application, some are not. Some have *.rc sources, some don't. I can't ignore all res files (.gitignore) because without resources my project will fail to build. Also, I can't include res files - they change from build to build, I don't want to see them in diffs.
What do you do with your *.res files under Git? Any advices?
I keep my project RES files in git (those that match the name of the dpr).
I believe the only reason the project RES file would change every time you build is if you have increment build number set, which to me either means you need to keep the res in source control or you don't care about the build number so you should turn off that option.
I do also have RES files that I build from RC, which change every compile, so I have a gitignore for *.res and I then add git add -f project.res
for the project RES files
这篇关于Delphi RES文件和Git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!