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

Method hasStashes

plugins/git/gitplugin.cpp:230–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230bool GitPlugin::hasStashes(const QDir& repository)
231{
232 if (auto *job = qobject_cast<DVcsJob*>(gitStash(repository, QStringList(QStringLiteral("list")), KDevelop::OutputJob::Silent))) {
233 return !emptyOutput(job);
234 }
235 Q_ASSERT(false); // gitStash should always return a DVcsJob !
236 return false;
237}
238
239bool GitPlugin::hasModifications(const QDir& d)
240{

Callers 1

testStashMethod · 0.80

Calls 2

QStringListClass · 0.85
emptyOutputFunction · 0.85

Tested by 1

testStashMethod · 0.64