mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-13 17:53:11 +02:00
Minor cleanup logic
This commit is contained in:
parent
7cd9260a92
commit
1b0ed24558
@ -108,21 +108,15 @@ public:
|
||||
|
||||
EnsureGitFiles( parent );
|
||||
|
||||
if( dir.GetFullName() == wxT( ".git" ) || IsIgnored( parent, dir.GetFullName(), true ) )
|
||||
return wxDIR_IGNORE;
|
||||
|
||||
wxDirTraverseResult result = wxDIR_IGNORE;
|
||||
|
||||
bool exclude = dirname.StartsWith( m_exclude ) || dirname.EndsWith( "-backups" );
|
||||
|
||||
if( !exclude )
|
||||
if( dir.GetFullName() == wxT( ".git" ) || IsIgnored( parent, dir.GetFullName(), true )
|
||||
|| dirname.StartsWith( m_exclude ) || dirname.EndsWith( "-backups" ) )
|
||||
{
|
||||
m_files.emplace_back( wxFileName::DirName( dirname ) );
|
||||
EnsureGitFiles( dirname + wxFileName::GetPathSeparator() );
|
||||
result = wxDIR_CONTINUE;
|
||||
return wxDIR_IGNORE;
|
||||
}
|
||||
|
||||
return result;
|
||||
m_files.emplace_back( wxFileName::DirName( dirname ) );
|
||||
EnsureGitFiles( dirname + wxFileName::GetPathSeparator() );
|
||||
return wxDIR_CONTINUE;
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user