1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//

use git_next_config::{
    common::{branch_name, repo_alias, repo_path},
    ForgeDetails, GitDir, RepoConfig,
};

use crate::{Generation, RepoDetails};

pub fn repo_details(
    n: u32,
    generation: Generation,
    forge: ForgeDetails,
    repo_config: Option<RepoConfig>,
    gitdir: GitDir,
) -> RepoDetails {
    RepoDetails {
        generation,
        repo_alias: repo_alias(n),
        repo_path: repo_path(n),
        gitdir,
        branch: branch_name(n),
        forge,
        repo_config,
    }
}