- add exclude patterns to sitecopy config, Patch contributed by Alvaro
Soliverez
Esse commit está contido em:
@@ -19,6 +19,11 @@ namespace Mirall {
|
||||
|
||||
SitecopyConfig::SitecopyConfig()
|
||||
{
|
||||
// file patterns to be exclude
|
||||
_ExcludePatterns.append("*.bak");
|
||||
_ExcludePatterns.append("*~");
|
||||
_ExcludePatterns.append(".*");
|
||||
_ExcludePatterns.append("\"#*#\"");
|
||||
|
||||
}
|
||||
|
||||
@@ -106,6 +111,10 @@ bool SitecopyConfig::sitecopyConfigToFile()
|
||||
out << " " << configKey << " " << configs[configKey] << '\n';
|
||||
qDebug() << " Setting: " << configKey << ": " << configs[configKey];
|
||||
}
|
||||
foreach( QString pattern, _ExcludePatterns ) {
|
||||
out << " exclude " << pattern << '\n';
|
||||
}
|
||||
|
||||
out << '\n';
|
||||
}
|
||||
configFile.close();
|
||||
|
||||
@@ -45,8 +45,10 @@ private:
|
||||
QHash<QString, QHash<QString, QString> > _Sites;
|
||||
QHash<QString, QString> _CurrSite;
|
||||
// QHash<QString, QStringList> _ChangesHash;
|
||||
QString _CurrSiteName;
|
||||
QStringList _ExcludePatterns;
|
||||
QString _CurrSiteName;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
#endif // SITECOPYCONFIG_H
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário