mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-30 16:10:23 +00:00
index: make ReadonlyIndexImpl private
There are no external callers.
This commit is contained in:
parent
6c57ba7f21
commit
172043e968
1 changed files with 3 additions and 3 deletions
|
@ -370,7 +370,7 @@ pub enum IndexLoadError {
|
||||||
// TODO: replace the table by a trie so we don't have to repeat the full commit
|
// TODO: replace the table by a trie so we don't have to repeat the full commit
|
||||||
// ids
|
// ids
|
||||||
// TODO: add a fanout table like git's commit graph has?
|
// TODO: add a fanout table like git's commit graph has?
|
||||||
pub(crate) struct ReadonlyIndexImpl {
|
struct ReadonlyIndexImpl {
|
||||||
parent_file: Option<Arc<ReadonlyIndexImpl>>,
|
parent_file: Option<Arc<ReadonlyIndexImpl>>,
|
||||||
num_parent_commits: u32,
|
num_parent_commits: u32,
|
||||||
name: String,
|
name: String,
|
||||||
|
@ -447,7 +447,7 @@ impl MutableIndexImpl {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn incremental(parent_file: Arc<ReadonlyIndexImpl>) -> Self {
|
fn incremental(parent_file: Arc<ReadonlyIndexImpl>) -> Self {
|
||||||
let num_parent_commits = parent_file.num_parent_commits + parent_file.num_local_commits;
|
let num_parent_commits = parent_file.num_parent_commits + parent_file.num_local_commits;
|
||||||
let commit_id_length = parent_file.commit_id_length;
|
let commit_id_length = parent_file.commit_id_length;
|
||||||
let change_id_length = parent_file.change_id_length;
|
let change_id_length = parent_file.change_id_length;
|
||||||
|
@ -1877,7 +1877,7 @@ impl ReadonlyIndexImpl {
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn as_composite(&self) -> CompositeIndex {
|
fn as_composite(&self) -> CompositeIndex {
|
||||||
CompositeIndex(self)
|
CompositeIndex(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue