Subdirectory clone (extension module for mizchi/bit)
Dependencies
pub struct SubdirConfig {
worktree_path : String?
track_history : Bool
}pub struct SubdirInfo {
path : String
git_dir : String
config_path : String
initialized : Bool
}pub struct SubdirInitConfig {
create_wrapper : Bool
verbose_marker : Bool
}pub struct SubdirRepo {
git_dir : String
subdir_path : String
current_commit : ObjectId?
subdir_tree : ObjectId?
bitfs : Fs
config : SubdirConfig
}fn SubdirRepo::commit(self : SubdirRepo, fs : &FileSystem, rfs : &RepoFileSystem, message : String, author? : String, timestamp? : Int64) -> ObjectId raise SubdirErrorfn SubdirRepo::from_branch(rfs : &RepoFileSystem, git_dir : String, branch : String, subdir_path : String, config? : SubdirConfig) -> SubdirRepo raise SubdirErrorfn SubdirRepo::from_commit(rfs : &RepoFileSystem, git_dir : String, commit_id : ObjectId, subdir_path : String, config? : SubdirConfig) -> SubdirRepo raise SubdirErrorfn SubdirRepo::from_head(rfs : &RepoFileSystem, git_dir : String, subdir_path : String, config? : SubdirConfig) -> SubdirRepo raise SubdirErrorfn SubdirRepo::log(self : SubdirRepo, rfs : &RepoFileSystem, max_count? : Int) -> Array[SubdirCommit] raise SubdirErrorfn add_module_sparse_patterns(fs : &FileSystem, rfs : &RepoFileSystem, git_dir : String, subdir_path : String, new_patterns : Array[String]) -> Unit raise SubdirErrorfn create_commit_in_repo(fs : &FileSystem, git_dir : String, tree_id : ObjectId, parent_id : ObjectId, message : String, author : String, timestamp : Int64) -> ObjectId raise SubdirErrorfn deinit_module(fs : &FileSystem, rfs : &RepoFileSystem, git_dir : String, repo_root : String, subdir_path : String) -> Unitfn deinit_subdir(fs : &FileSystem, rfs : &RepoFileSystem, git_dir : String, repo_root : String, subdir_path : String) -> Unitfn disable_module_sparse(fs : &FileSystem, rfs : &RepoFileSystem, git_dir : String, subdir_path : String) -> Unit raise SubdirErrorfn extract_subdir_tree(db : ObjectDb, rfs : &RepoFileSystem, commit_id : ObjectId, subdir_path : String) -> ObjectId raise SubdirErrorfn generate_shell_env(git_dir : String, repo_root : String, subdir_path : String) -> Array[(String, String)]fn get_subdir_info(rfs : &RepoFileSystem, git_dir : String, _repo_root : String, subdir_path : String) -> SubdirInfo?fn init_module(fs : &FileSystem, rfs : &RepoFileSystem, git_dir : String, repo_root : String, subdir_path : String) -> Unit raise SubdirErrorfn init_module_sparse(fs : &FileSystem, rfs : &RepoFileSystem, git_dir : String, subdir_path : String, cone? : Bool) -> Unit raise SubdirErrorfn init_subdir(fs : &FileSystem, git_dir : String, repo_root : String, subdir_path : String, config : SubdirInitConfig) -> SubdirInfo raise SubdirErrorfn read_module_sparse_patterns(rfs : &RepoFileSystem, git_dir : String, subdir_path : String) -> Array[String]fn set_module_sparse_patterns(fs : &FileSystem, rfs : &RepoFileSystem, git_dir : String, subdir_path : String, patterns : Array[String]) -> Unit raise SubdirErrorfn sync_module(fs : &FileSystem, rfs : &RepoFileSystem, git_dir : String, subdir_path : String) -> Unit raise SubdirErrorfn write_module_sparse_patterns(fs : &FileSystem, git_dir : String, subdir_path : String, patterns : Array[String]) -> Unit raise SubdirErrorSubdirectory clone (extension module for mizchi/bit)
Dependencies