Skip to main content

Module build

Module build 

Source
Expand description

object (tree / commit / tag) の生成。

生成する body は object module の parse 対象と同じ形式で、oid は object::compute_oid で求める。blob の body は内容そのものであり、 専用の builder を持たない。

Structs§

TreeEntry
tree に登録する entry。mode は 8 進表記のまま渡す (例: b“100644“、b“40000“)。

Functions§

commit
commit の body を生成する。
tree
tree の body を生成する。entry は git の正規順 (directory は名前に ‘/’ を 補って比較する) に並べ替える。