huxerui.git
importRepository inspection and Git operations for HuxerUI
import huxerui.git;
Module name read from the upstream `export module` declaration in modules/git.cppm.
mcpp add huxerui.git@0.1.1
Usage
From this repository's own test project — built and run by CI, not written for the website.
import std;
import huxerui;
import huxerui.git;
namespace fs = std::filesystem;
namespace git = huxerui::git;
namespace {
void Require(bool condition, std::string_view message) {
if (!condition) {
throw std::runtime_error(std::string(message));
}
}
template <class T>
T RequireOk(git::GitResult<T> result, std::string_view op) {
if (!result.Succeeded()) {
throw std::runtime_error(std::string(op) + " failed: " + result.Error().message);
}
return std::move(result).Value();
}
// …
tests/examples/huxerui-git/tests/git.cpp · project tests/examples/huxerui-git
Build · upstream manifest
- modules
huxerui.git- targets
git (lib)- language
c++23- manifest version
0.1.1- dependencies
huxerui, compat- source
https://raw.githubusercontent.com/HuxerUI/Lib-Git/v0.1.1/mcpp.toml
Versions
| Version | Platforms | Mirrors | sha256 |
|---|---|---|---|
0.1.1 latest |
LinuxWindowsmacOS | source | 43eb826f58d6… |