MCPcopy Create free account
hub / github.com/Murmele/Gittyup / addFile

Method addFile

src/git/Config.cpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58Config::Config(git_config *config) : d(config, git_config_free) {}
59
60bool Config::addFile(const QString &path, git_config_level_t level,
61 const Repository &repo) {
62 git_repository *ptr =
63 repo.isValid() ? static_cast<git_repository *>(repo) : nullptr;
64 return !git_config_add_file_ondisk(d.data(), path.toUtf8(), level, ptr,
65 false);
66}
67
68template <>
69bool Config::value<bool>(const QString &key, const bool &defaultValue) const {

Callers 2

lookupCommandMethod · 0.45
appConfigMethod · 0.45

Calls 2

isValidMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected