mcpp index

compat.libgit2

#include

Cross-platform, linkable library implementation of Git

#include <git2.h>
mcpp add compat.libgit2@1.9.7

用法

來自本倉庫自己的測試專案 —— CI 真的編譯並執行過,不是為了網站寫的。

#include <git2.h>

#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <string>

namespace fs = std::filesystem;

namespace {

bool Expect(bool ok, const char* msg) {
  if (!ok) {
    std::cerr << "FAIL: " << msg << "\n";
  }
  return ok;
}

} // namespace

int main() {
// …

tests/examples/libgit2/tests/libgit2.cpp · 專案 tests/examples/libgit2

建置

targets
git2 (lib)
language
c++23
C standard
c11
import std
no
include dirs
*/include

原始檔 (14)

  • */src/libgit2/*.c
  • */src/libgit2/streams/*.c
  • */src/libgit2/transports/*.c
  • */src/util/*.c
  • */src/util/allocators/*.c
  • */src/util/hash.c
  • */src/util/hash/collisiondetect.c
  • */src/util/hash/sha1dc/*.c
  • */src/util/hash/builtin.c
  • */src/util/hash/rfc6234/*.c
  • */deps/llhttp/*.c
  • */deps/xdiff/*.c
  • */deps/pcre2/*.c
  • !*/deps/pcre2/pcre2_fuzzsupport.c

產生的檔案

  • mcpp_generated/gen_headers/experimental.h
  • mcpp_generated/pcre2/config.h
  • mcpp_generated/gen_headers/git2_features.h

版本

版本平台 鏡像sha256
1.9.7 最新 LinuxWindowsmacOS CN GLOBAL 1a4fbe7589e8…