grit-lib 0.5.32

Core library for the grit Git implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Merge helpers for workspace tests (unstable; not part of semver surface).

use crate::error::Result;
use crate::index::IndexEntry;
use crate::objects::ObjectId;
use crate::repo::Repository;

/// Flatten a tree object into index entries ([`crate::porcelain::merge::tree_to_index_entries`]).
pub fn tree_to_index_entries(
    repo: &Repository,
    oid: &ObjectId,
    prefix: &str,
) -> Result<Vec<IndexEntry>> {
    crate::porcelain::merge::tree_to_index_entries(repo, oid, prefix)
}