MCPcopy Create free account
hub / github.com/KDE/kdevelop / writeFile

Function writeFile

plugins/git/tests/test_git.cpp:56–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54using namespace KDevelop;
55
56bool 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
70void timeSwitchingBranch(GitPlugin* plugin, const QUrl& repository, const QString& branchName)
71{

Callers 8

addFilesMethod · 0.85
commitFilesMethod · 0.85
testMergeMethod · 0.85
testAnnotationMethod · 0.85
testDiffMethod · 0.85
testStashMethod · 0.85

Calls 1

openMethod · 0.45

Tested by

no test coverage detected