Loads and holds information from both Linux and SUSE MAINTAINERS files.
More...
#include <Maintainers.h>
|
| static std::optional< Maintainers > | load (const std::filesystem::path &SUSE, const std::filesystem::path &linuxRepo, const std::string &origin, const Stanza::TranslateEmail &translateEmail) |
| | Load maintainers info. More...
|
| |
Loads and holds information from both Linux and SUSE MAINTAINERS files.
It can be searched via findBestMatch() and findBestMatchUpstream() functions.
◆ findBestMatch()
| const Stanza* SlKernCVS::Maintainers::findBestMatch |
( |
const std::set< std::filesystem::path > & |
paths | ) |
const |
|
inline |
Find the best matched maintainer from the SUSE's MAINTAINERS file.
- Parameters
-
| paths | Set of paths for which a maintainers is looked for |
- Returns
- Stanza if found or nullptr.
◆ findBestMatchUpstream()
| const Stanza* SlKernCVS::Maintainers::findBestMatchUpstream |
( |
const std::set< std::filesystem::path > & |
paths | ) |
const |
|
inline |
Find the best matched maintainer from the Linux's MAINTAINERS file.
- Parameters
-
| paths | Set of paths for which a maintainers is looked for |
- Returns
- Stanza if found or nullptr.
◆ load()
| static std::optional<Maintainers> SlKernCVS::Maintainers::load |
( |
const std::filesystem::path & |
SUSE, |
|
|
const std::filesystem::path & |
linuxRepo, |
|
|
const std::string & |
origin, |
|
|
const Stanza::TranslateEmail & |
translateEmail |
|
) |
| |
|
inlinestatic |
Load maintainers info.
- Parameters
-
| SUSE | path to SUSE's MAINTAINERS file |
| linuxRepo | path to upstream linux repository (LINUX_GIT) |
| origin | name of branch (of LINUX_GIT) to load upstream MAINTAINERS from |
| translateEmail | a function translating emails (eg. to map login -> bugzilla) |
- Returns
- Maintainers if load was successful, otherwise std::nullopt
SUSE is usually fetched from kerncvs.
◆ maintainers()
Get all parsed SUSE maintainers.
- Returns
- SUSE maintainers.
◆ suse_users()
| const std::set<std::string>& SlKernCVS::Maintainers::suse_users |
( |
| ) |
const |
|
inline |
Get all met SUSE users.
- Returns
- SUSE users met in both MAINTAINERS files.
◆ upstream_maintainers()
| const MaintainersType& SlKernCVS::Maintainers::upstream_maintainers |
( |
| ) |
const |
|
inline |
Get all parsed Linux maintainers.
- Returns
- Linux maintainers.
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/slhelpers-20260428.f233ce9/include/kerncvs/Maintainers.h