pub fn init_internal_git(settings: &UserSettings, wc_path: PathBuf) -> Arc<ReadonlyRepo> {
        let repo_path = wc_path.join(".jj");
        fs::create_dir(repo_path.clone()).unwrap();
        let git_store_path = repo_path.join("git");
        git2::Repository::init_bare(&git_store_path).unwrap();
        let store_path = repo_path.join("store");
        let git_store_path = fs::canonicalize(git_store_path).unwrap();
        let mut store_file = File::create(store_path).unwrap();
        store_file.write_all(b"git: git").unwrap();
        let store = Box::new(GitStore::load(git_store_path));
        ReadonlyRepo::init(settings, repo_path, wc_path, store)
    }
/// Initializes a repo with a new Git store in .jj/git/ (bare Git repo)
Initializes a repo with a new Git store in .jj/git/ (bare Git repo)
Initializes a repo with a new Git store in . jj / git / ( bare Git repo )
pub fn init_internal_git(settings: &UserSettings, wc_path: PathBuf) -> Arc<ReadonlyRepo> {
        let repo_path = wc_path.join(".jj");
        fs::create_dir(repo_path.clone()).unwrap();
        let git_store_path = repo_path.join("git");
        git2::Repository::init_bare(&git_store_path).unwrap();
        let store_path = repo_path.join("store");
        let git_store_path = fs::canonicalize(git_store_path).unwrap();
        let mut store_file = File::create(store_path).unwrap();
        store_file.write_all(b"git: git").unwrap();
        let store = Box::new(GitStore::load(git_store_path));
        ReadonlyRepo::init(settings, repo_path, wc_path, store)
    }
pub fn init_internal_git ( settings : & UserSettings , wc_path : PathBuf ) -> Arc < ReadonlyRepo > { let repo_path = wc_path . join ( " " ) ; fs :: create_dir ( repo_path . clone ( ) ) . unwrap ( ) ; let git_store_path = repo_path . join ( " " ) ; git2 :: Repository :: init_bare ( & git_store_path ) . unwrap ( ) ; let store_path = repo_path . join ( " " ) ; let git_store_path = fs :: canonicalize ( git_store_path ) . unwrap ( ) ; let mut store_file = File :: create ( store_path ) . unwrap ( ) ; store_file . write_all ( b" " ) . unwrap ( ) ; let store = Box :: new ( GitStore :: load ( git_store_path ) ) ; ReadonlyRepo :: init ( settings , repo_path , wc_path , store ) }
Initializes a repo with a new Git store in .jj/git/ (bare Git repo)
Initializes a repo with a new Git store in . jj / git / ( bare Git repo )
settings
&UserSettings
wc_path
PathBuf
settings
&UserSettings
wc_path
PathBuf