我在哪里可以找到有关v2 Git pack索引文件格式的文档? [英] Where can I find documentation on the format of v2 Git pack index files?

查看:80
本文介绍了我在哪里可以找到有关v2 Git pack索引文件格式的文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究Git的一个简单PHP只读实现,我已经掌握了它的主要工作,但我无法弄清楚Git包索引文件(版本2)的确切格式。到目前为止,我发现的所有文档都是模糊的,只是专注于使用Git本身进行解释,或者仅适用于版本1,根据我的理解,这种版本有很大不同。对PHP使用现有的Git实现不是一种选择(我已经尝试了一些,并继续与他们碰到问题)。

我基本上需要一些有关v2包索引文件格式的简单通用文档,没有任何PHP特定的文档。我在哪里可以找到这个?

Git资源包含的文档似乎对v1和v2 packfile格式有相当完整的描述。



当然,还有许多其他的软件工具可以理解这种格式,包括 dulwich for Python,当然还有 libgit2 for C.学习这些可能会帮助你理解如果技术文件不清楚的话。

I'm working on a simple PHP read-only implementation of Git and I've got it mostly working, but I can't figure out what the exact format is of Git pack index files (version 2). All documentation I have found so far is either vague and only focused towards interpreting them with Git itself, or only applies to version 1 which is, from my understanding, considerably different. Using an existing Git implementation for PHP is not an option (I've tried a few, and keep hitting issues with them).

I'm basically in need of some simple and generic documentation about the format of a v2 pack index file, nothing PHP-specific. Where can I find this?

解决方案

The documentation included with the Git sources seems to have a reasonably complete description of the v1 and v2 packfile formats.

And of course there are a variety of other software implements that understand this format, including dulwich for Python and of course libgit2 for C. Studying these may help out your understanding if the technical documentation is unclear.

这篇关于我在哪里可以找到有关v2 Git pack索引文件格式的文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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