diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core.rs b/src/core.rs index 1223bb7..be1edfb 100644 --- a/src/core.rs +++ b/src/core.rs @@ -3,6 +3,9 @@ use std::path::PathBuf; use std::process; use ini::ini; +type ConfigHashMap = HashMap<String, HashMap<String, Option<String>>>; + + pub struct GitRepository { pub worktree: PathBuf, gitdir: PathBuf, @@ -17,7 +20,7 @@ fn die(msg: &str) { impl GitRepository { pub fn new(worktree: PathBuf) -> Self { let gitdir = worktree.join(".git"); - let conf: HashMap<String, HashMap<String, Option<String>>> = HashMap::new(); + let conf: ConfigHashMap = HashMap::new(); Self { worktree, gitdir, conf } } |