mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-19 06:04:26 +00:00
This patch introduces a new `IndexStore` struct. The idea is that it will know about the directory in which the index files are stored, the associations with operations. It may also cache `Arc<ReadonlyIndex>` instances so if multiple `ReadonlyIndex` instances are loaded, they can be returned from the cache. That may be useful when merging operations because the operations are likely to share a large parent index file. For now, however, all the new type has is `init()`, `load()`, and `reinit()`.
52 lines
1.2 KiB
Rust
52 lines
1.2 KiB
Rust
// Copyright 2020 Google LLC
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#![feature(get_mut_unchecked)]
|
|
#![feature(map_first_last)]
|
|
|
|
#[cfg(test)]
|
|
#[macro_use]
|
|
extern crate maplit;
|
|
|
|
pub mod commit;
|
|
pub mod commit_builder;
|
|
pub mod conflicts;
|
|
pub mod dag_walk;
|
|
pub mod evolution;
|
|
pub mod files;
|
|
pub mod git;
|
|
pub mod git_store;
|
|
pub mod index;
|
|
pub mod index_store;
|
|
pub mod local_store;
|
|
pub mod lock;
|
|
pub mod matchers;
|
|
pub mod op_store;
|
|
pub mod operation;
|
|
pub mod protos;
|
|
pub mod repo;
|
|
pub mod repo_path;
|
|
pub mod rewrite;
|
|
pub mod settings;
|
|
pub mod simple_op_store;
|
|
pub mod store;
|
|
pub mod store_wrapper;
|
|
pub mod testutils;
|
|
pub mod transaction;
|
|
pub mod tree;
|
|
pub mod tree_builder;
|
|
pub mod trees;
|
|
pub mod view;
|
|
pub mod working_copy;
|