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

Method updatePatchFile

plugins/git/stashpatchsource.cpp:63–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void StashPatchSource::updatePatchFile(KDevelop::VcsJob* job)
64{
65 auto* dvcsJob = qobject_cast<KDevelop::DVcsJob*>(job);
66 QFile f(m_patchFile.toLocalFile());
67 QTextStream txtStream(&f);
68
69 f.open(QIODevice::WriteOnly);
70 txtStream << dvcsJob->rawOutput();
71 f.close();
72
73 emit patchChanged();
74}
75
76#include "moc_stashpatchsource.cpp"

Callers

nothing calls this directly

Calls 4

toLocalFileMethod · 0.80
rawOutputMethod · 0.80
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected