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

Method readConfigOption

plugins/git/gitplugin.cpp:1917–1924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1915}
1916
1917QString GitPlugin::readConfigOption(const QUrl& repository, const QString& key)
1918{
1919 QProcess exec;
1920 exec.setWorkingDirectory(urlDir(repository).absolutePath());
1921 exec.start(QStringLiteral("git"), QStringList{QStringLiteral("config"), QStringLiteral("--get"), key});
1922 exec.waitForFinished();
1923 return QString::fromUtf8(exec.readAllStandardOutput().trimmed());
1924}
1925
1926#include "gitplugin.moc"
1927#include "moc_gitplugin.cpp"

Callers 1

Calls 3

urlDirFunction · 0.70
setWorkingDirectoryMethod · 0.45
startMethod · 0.45

Tested by 1