/// Creates a `Clog` struct using a specific git working directory AND a project directory.
/// Searches for the default configuration TOML file `.clog.toml`
///
/// **NOTE:** If you specify a `.git` folder the parent will be used as the working tree, and
/// vice versa.
///
/// # Example
///
/// ```no_run
/// # use clog::Clog;
/// let clog = Clog::with_dirs("/myproject", "/myproject/.git").unwrap_or_else(|e| {
///     e.exit();
/// });
/// ```
Creates a `Clog` struct using a specific git working directory AND a project directory.
Searches for the default configuration TOML file `.clog.toml`

If you specify a `.git` folder the parent will be used as the working tree, and
vice versa.
Creates a ` Clog ` struct using a specific git working directory AND a project directory . Searches for the default configuration TOML file ` . clog . toml ` If you specify a ` . git ` folder the parent will be used as the working tree and vice versa .
pub fn with_dirs<P: AsRef<Path>>(git_dir: P, work_tree: P) -> BuilderResult {
        debugln!("Creating clog with \n\tgit_dir: {:?}\n\twork_tree: {:?}",
            git_dir.as_ref(),
            work_tree.as_ref());
        let mut clog = Clog::_new();
        clog.git_dir = Some(git_dir.as_ref().to_path_buf());
        clog.git_work_tree = Some(work_tree.as_ref().to_path_buf());
        clog.try_config_file(Path::new(CLOG_CONFIG_FILE))
    }
pub fn with_dirs < P : AsRef < Path > > ( git_dir : P , work_tree : P ) -> BuilderResult { debugln ! ( " \n \t \n \t " git_dir as_ref ( ) work_tree as_ref ( ) ) ; let mut clog = Clog :: _new ( ) ; clog . git_dir = Some ( git_dir . as_ref ( ) . to_path_buf ( ) ) ; clog . git_work_tree = Some ( work_tree . as_ref ( ) . to_path_buf ( ) ) ; clog . try_config_file ( Path :: new ( CLOG_CONFIG_FILE ) ) }
Creates a `Clog` struct using a specific git working directory AND a project directory.
Creates a ` Clog ` struct using a specific git working directory AND a project directory .
git_dir
P
work_tree
P
example
None
use clog::clog;
None