iniside Posted December 13, 2018 Report Share Posted December 13, 2018 I have ignore.conf (below). I'm trying various rules to ignore .git folder and it's contents, but nothing I do seems to work. Any advice ? (i general i want to ignore everything except files with !) !*/ !*.c !*.cc !*.cpp !*.cpp.template !*.h !*.h.template !*.hpp !*.inl !*.inc !*.m !*.mm !*.rc !*.rc2 !*.def !*.exp !*.manifest *.vshost.exe.manifest !*.java !*.java.template !*.cs !*.cs.template !*.aspx !*.resx !*.usf !*.ush !*.hlsl !*.glsl !*.txt !*.md !*.bat !*.sh !*.pl !*.py !*.js !*.command !*.ini !*.json !*.tps !*.xml !*.xaml !*.uproject !*.uplugin !*.html !*.html.template !*.css !*.udn !*.config !*.version !.editorconfig !*.cmake !*.mk !*.dsp !*.dsw !*.csproj !*.vcproj !*.vcxproj !*.vcxproj.filters !*.sln !*.xcodeproj !*.xcconfig !*.vsprops !*.snippet !Makefile !Makefile.* !Settings.settings !README !AUTHORS !LICENSE !FAQ !VERSION !ChangeLog *~ /*.sln /*.xcodeproj /Makefile /CMakeLists.txt /cmake-build-debug *.target.xml *.dll.config *.exe.config *.exe.manifest /.kdev4/ /UE4CodeCompletionFolders.txt /UE4CodeLitePreProcessor.txt !/Engine/Binaries/ThirdParty/Mono/Mac/bin/* !/Engine/Binaries/ThirdParty/Mono/Mac/etc/mono/config !/Engine/Binaries/ThirdParty/Mono/Mac/etc/mono/4.5/machine.config !/Engine/Binaries/ThirdParty/Mono/Mac/lib/libMonoPosixHelper.dylib !/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mscorlib.dll !/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll !/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll !/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll !/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll !/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll !/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll /Engine/Binaries/ThirdParty/Mono/Mac/bin/mono !/Engine/Binaries/ThirdParty/Mono/Linux/bin/* !/Engine/Binaries/ThirdParty/Mono/Linux/etc/mono/config !/Engine/Binaries/ThirdParty/Mono/Linux/etc/mono/4.5/machine.config !/Engine/Binaries/ThirdParty/Mono/Linux/x86_64-unknown-linux-gnu/bin/mono-boehm !/Engine/Binaries/ThirdParty/Mono/Linux/x86_64-unknown-linux-gnu/bin/mono-sgen !/Engine/Binaries/ThirdParty/Mono/Linux/x86_64-unknown-linux-gnu/lib/libMonoPosixHelper.so !/Engine/Binaries/ThirdParty/Mono/Linux/lib/mono/4.5/mscorlib.dll !/Engine/Binaries/ThirdParty/Mono/Linux/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll !/Engine/Binaries/ThirdParty/Mono/Linux/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll !/Engine/Binaries/ThirdParty/Mono/Linux/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll !/Engine/Binaries/ThirdParty/Mono/Linux/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll !/Engine/Binaries/ThirdParty/Mono/Linux/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll !/Engine/Binaries/ThirdParty/Mono/Linux/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll /Engine/Binaries/ThirdParty/Mono/Linux/bin/mono /Engine/Binaries/ThirdParty/Mono/Linux/bin/mono-boehm /Engine/Binaries/ThirdParty/Mono/Linux/bin/mono-sgen !/Engine/Binaries/DotNET/GitDependencies.exe !/Engine/Binaries/DotNET/GitDependencies.exe.config Engine/Binaries/DotNET/UnrealBuildTool.xml Engine/Binaries/DotNET/AutomationScripts/BuildGraph.Automation.xml Engine/Source/Programs/AutomationTool/BuildGraph/BuildGraph.Automation.xml /Engine/Binaries/**/*.version /Engine/Binaries/**/*.exp Content/ /Engine/DerivedDataCache/** Intermediate/ obj/ Saved/ /Engine/Programs/MemoryProfiler2/** /Engine/Programs/UnrealBuildTool/** /LocalBuilds/ Engine/Binaries/DotNET/SwarmAgent.DeveloperOptions.xml Engine/Binaries/DotNET/SwarmAgent.Options.xml .DS_Store .vs .vscode .idea/ !NXProject/Source/** !NXProject/Plugins/**/Source/** !NXProject/Content/**/** !NXProject/Content !*.uasset !*.umap !*.uplugin /Engine/Source/ThirdParty/Crunch/src/bin/crunch_x64.exe NXProject/Content/Paragon*/** !NXProject/Content/ParagonGideon/** /Engine/Binaries/DotNET/GitDependencies.exe /NXProject/Binaries/** /NXProject/Build/** /.git .git* .git** Link to comment Share on other sites More sharing options...
psantosl Posted December 13, 2018 Report Share Posted December 13, 2018 Focusing just on the .git => I think ignore.conf thinks "." means a file and its extension. Check this http://blog.plasticscm.com/2014/11/configuring-ignored-items-on-your.html just in case it helps. Otherwise we'll get back to you in a few hours. Link to comment Share on other sites More sharing options...
iniside Posted December 13, 2018 Author Report Share Posted December 13, 2018 Hey thanks for reply. I have seen this blog post several times, but some of those rules work and some don't. Ie. ignoring files by extension work like *.dll Intermediate Does not ignore any Intermediate Folder. Rule like: *.gen.h Does not ignore files with this postfix. It's UnrealEngine project and there are quite a few folders/files I'd like to ignore for it. Link to comment Share on other sites More sharing options...
mig Posted December 14, 2018 Report Share Posted December 14, 2018 Hi @iniside, I'm using the latest Plastic SCM Version (7.0.16.2843) and this line in ignore.conf causes all .git directories to be ignored: .git I don't really understand what you mean about the Intermediate line. This should ignore all directories called "Intermediate": Intermediate I notice, however, that you have this in your ignore.conf: Intermediate/ That trailing slash means that you want the contents to be ignored, but not the directory itself. Generally speaking, entering names (e.g. ".git", "Intermediate", "foo.c") as ignore rules will ignore any item (either file or directory) with that exact name and all their children, if it was a directory. Is this helpful? Regards, Miguel Link to comment Share on other sites More sharing options...
iniside Posted December 14, 2018 Author Report Share Posted December 14, 2018 Hey What I wanted to achieve is to ignore directory and all it's contents. I think I somewhat got it working, since it seems that in ignore.conf "!" rules prevail over any previously ignored files and unblock them, which is kind of confusing coming from git where .gitignore is interpreted from top to bottom. Either way, the solution to ignore everything inside Intermediate folder was to ignore all *.cpp and *.h files, and then do something like !Source/*.cpp, which is also not perfect solution. Because in Unreal actual relevelant .cpp and .h files cloud spread over various directories (like ThirdParty, where there might no be Source directory). It would be nice to get direct support for .gitignore scheme, as it is far more flexible in huge project like Unreal Engine, where there is no clean cut directory/file structure. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.