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