| 58 | Config::Config(git_config *config) : d(config, git_config_free) {} |
| 59 | |
| 60 | bool 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 | |
| 68 | template <> |
| 69 | bool Config::value<bool>(const QString &key, const bool &defaultValue) const { |
no test coverage detected