Jump to content
iniside

ignore.conf doesn't seem to work

Recommended Posts

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**

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...