girt-core 2.3.0

Core modules for git-interactive-rebase-tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::sync::Arc;

use config::Config;
use git::Repository;
use parking_lot::Mutex;
use todo_file::TodoFile;

use super::{Module, State};

pub(crate) trait ModuleProvider {
	fn new(config: &Config, repository: Repository, todo_file: &Arc<Mutex<TodoFile>>) -> Self;

	fn get_mut_module(&mut self, _state: State) -> &mut dyn Module;

	fn get_module(&self, _state: State) -> &dyn Module;
}