| 54 | using namespace KDevelop; |
| 55 | |
| 56 | bool writeFile(const QString &path, const QString& content, QIODevice::OpenModeFlag mode = QIODevice::WriteOnly) |
| 57 | { |
| 58 | QFile f(path); |
| 59 | |
| 60 | if (!f.open(mode)) { |
| 61 | return false; |
| 62 | } |
| 63 | |
| 64 | QTextStream input(&f); |
| 65 | input << content; |
| 66 | |
| 67 | return true; |
| 68 | } |
| 69 | |
| 70 | void timeSwitchingBranch(GitPlugin* plugin, const QUrl& repository, const QString& branchName) |
| 71 | { |
no test coverage detected