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

Method setConfigOption

plugins/git/gitplugin.cpp:1905–1915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1903}
1904
1905DVcsJob* GitPlugin::setConfigOption(const QUrl& repository, const QString& key, const QString& value, bool global)
1906{
1907 auto job = new GitJob(urlDir(repository), this);
1908 QStringList args;
1909 args << QStringLiteral("git") << QStringLiteral("config");
1910 if(global)
1911 args << QStringLiteral("--global");
1912 args << key << value;
1913 *job << args;
1914 return job;
1915}
1916
1917QString GitPlugin::readConfigOption(const QUrl& repository, const QString& key)
1918{

Callers 2

repoInitMethod · 0.80

Calls 1

urlDirFunction · 0.70

Tested by 2

repoInitMethod · 0.64