在没有 Git 的情况下读取 Git 存储库

2022-01-04 00:00:00 git php version-control

我正在研究构建一个超小型(最好是 PHP)Web 应用程序的想法,该应用程序将(除其他外)用作 git 存储库的最小前端.

I'm researching the idea of building a super-small (preferably PHP) web app, which will serve (among other things) as a minimal front-end to a git repository.

任何用于读取 git 存储库的库/文章(.git"文件夹)无需执行git"进程?我正在寻找 API管理 git 存储库.我只对基本功能感兴趣,例如读取上次提交(提交者名称、提交说明、日期)、显示和遍历分支...

Any library/article for reading a git repository (".git" folder) without having to execute the "git" process? I'm looking for an API to manage a git repository. I'm only interested in basic functions, such as reading last commits (name of commiter, commit note, date), displaying and traversing branches...

谢谢,阿奈米

推荐答案

Would this(git API 文档)有帮助吗?

Would this (git API documents) be of any help?

以下是有关扩展 php(即提供其他库代码的包装器)的资源列表:

Here's a list of resources about extending php (i.e. to to provide wrappers around other library code):

  • 扩展 php - 概述
  • 用 C 编写 php 扩展模块
  • PHP 扩展编写
  • 编写扩展
  • 实用 PHP 编程:编写扩展
  • 扩展 PHP:示例
  • 编写 PHP 扩展
  • 扩展编写第一部分:PHP 和 Zend 简介
  • Zend API:破解 PHP 核心
  • 核心 PHP:Zend 引擎的黑客指南
  • 使用 MS VC++ 2005 创建 PHP5 扩展
  • 编写 PHP 扩展 (C++)

此外,这些似乎也很相关:

Also, these would seem relevant, too:

  • git-php
  • git 库?
  • 纯 Python Git 库
  • Git 库?
  • libgit2 - 一个真正的 git 库 &GitHub 上的 libgit2 源代码
  • php-git,一个 libgit2 绑定
  • ActionScript3 git 库
  • git-php
  • git library?
  • Pure-Python Git Library
  • Git library?
  • libgit2 - a true git library & libgit2 source code at GitHub
  • php-git, a libgit2 binding
  • ActionScript3 git library

相关文章