SlHelpers
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< Patchcreate (const std::filesystem::path &path)
 Create a new Patch from file at path.
 
static std::optional< Patchcreate (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: