SlHelpers
SlKernCVS::PatchesAuthors Class Reference

PatchesAuthors parses all patches in all ("build") branches in the kernel-source tree and reports who touched what file in the linux (upstream) tree. More...

#include <PatchesAuthors.h>

Public Types

using Map = std::map< std::string, std::map< std::string, unsigned int > >
 E-mail -> file -> count mapping.
 
using InsertUser = std::function< bool(const std::string &email)>
 A callback invoked for e-mail.
 
using InsertUFMap = std::function< bool(const std::string &email, const std::filesystem::path &file, unsigned gitFixes, unsigned realFixes)>
 A callback invoked for e-mail, file, and counts of git-fixes and real changes.
 

Public Member Functions

 PatchesAuthors (const SlGit::Repo &repo, bool dumpRefs, bool reportUnhandled)
 PatchesAuthors constructor. More...
 
bool processAuthors (const SlGit::Commit &commit, const InsertUser &insertUser, const InsertUFMap &insertUFMap)
 The real work function of this class. More...
 

Friends

void testProcessPatch ()
 

Detailed Description

PatchesAuthors parses all patches in all ("build") branches in the kernel-source tree and reports who touched what file in the linux (upstream) tree.

The reporting happens via the provided callbacks.

Constructor & Destructor Documentation

◆ PatchesAuthors()

SlKernCVS::PatchesAuthors::PatchesAuthors ( const SlGit::Repo repo,
bool  dumpRefs,
bool  reportUnhandled 
)
inline

PatchesAuthors constructor.

Parameters
repoKernCVS repository to search in
dumpRefsShould References: be dumped to stdout?
reportUnhandledShould unhandled @suse e-mail be reported to stderr?

Member Function Documentation

◆ processAuthors()

bool SlKernCVS::PatchesAuthors::processAuthors ( const SlGit::Commit commit,
const InsertUser insertUser,
const InsertUFMap insertUFMap 
)

The real work function of this class.

Parameters
commitThe commit to walk
insertUserCallback to invoke for a user
insertUFMapCallback to invoke for a user, path, and (all+non-git-fixes) counts
Returns
true on success.

The documentation for this class was generated from the following file: