在没有 Git 的情况下读取 Git 存储库 [英] Reading a Git repository, without Git

查看:37
本文介绍了在没有 Git 的情况下读取 Git 存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究构建一个超小型(最好是 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):

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

Also, these would seem relevant, too:

  • 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

这篇关于在没有 Git 的情况下读取 Git 存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆