MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / index_tree_oid

Function index_tree_oid

atomic-cli/tests/it/git_projection_cb8a_test.rs:200–202  ·  view source on GitHub ↗

The tree object the Git index describes (`git write-tree`), i.e. the stage-0 image of the index.

(fixture: &Colocated)

Source from the content-addressed store, hash-verified

198/// The tree object the Git index describes (`git write-tree`), i.e. the
199/// stage-0 image of the index.
200fn index_tree_oid(fixture: &Colocated) -> String {
201 fixture.git(&["write-tree"])
202}
203
204fn head_tree(fixture: &Colocated) -> String {
205 fixture.git(&["rev-parse", "HEAD^{tree}"])

Calls 1

gitMethod · 0.45

Tested by

no test coverage detected