Struct jujutsu_lib::index_store::IndexStore
source · pub struct IndexStore { /* private fields */ }Implementations§
source§impl IndexStore
impl IndexStore
pub fn init(dir: PathBuf) -> Self
pub fn reinit(&self)
pub fn load(dir: PathBuf) -> IndexStore
pub fn get_index_at_op(
&self,
op: &Operation,
store: &Arc<Store>
) -> Arc<ReadonlyIndex>
pub fn write_index(&self, index: MutableIndex) -> Result<Arc<ReadonlyIndex>>
sourcepub fn associate_file_with_operation(
&self,
index: &ReadonlyIndex,
op_id: &OperationId
) -> Result<()>
pub fn associate_file_with_operation(
&self,
index: &ReadonlyIndex,
op_id: &OperationId
) -> Result<()>
Records a link from the given operation to the this index version.