SlHelpers
Loading...
Searching...
No Matches
SlKernCVS::Patch Class Reference

Parses a patch into header and files patched. More...

#include <Patch.h>

Public Types

using Header = std::vector<std::string>
 Type for a patch header.
using Paths = std::set<std::filesystem::path>
 Type for patched paths.

Public Member Functions

const auto & header () const noexcept
 Get header of this Patch.
const auto & paths () const noexcept
 Get paths this Patch touches.

Static Public Member Functions

static std::optional< Patch > create (const std::filesystem::path &path)
 Create a new Patch from file at path.
static std::optional< Patch > create (std::istream &is)
 Create a new Patch from stream is.
static auto lastError () noexcept
 Return the last error string if any.

Detailed Description

Parses a patch into header and files patched.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/slhelpers-20260428.f233ce9-build/slhelpers-20260428.f233ce9/include/kerncvs/Patch.h