pub fn with_dir_and_file<P: AsRef<Path>>(dir: P, cfg_file: P) -> BuilderResult {
        debugln!("Creating clog with \n\tdir: {:?}\n\tcfg_file: {:?}",
            dir.as_ref(),
            cfg_file.as_ref());
        let clog = try!(Clog::_with_dir(dir));
        clog.try_config_file(cfg_file.as_ref())
    }
/// Creates a `Clog` struct using a specific git working directory OR project directory as
/// well as a custom named TOML configuration file.
///
/// **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_dir_and_file("/myproject",
///                           "/myproject/clog_conf.toml").unwrap_or_else(|e| {
///     e.exit();
/// });
/// ```
Creates a `Clog` struct using a specific git working directory OR project directory as
well as a custom named TOML configuration file.

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 OR project directory as well as a custom named TOML configuration file . If you specify a ` . git ` folder the parent will be used as the working tree and vice versa .
pub fn with_dir_and_file<P: AsRef<Path>>(dir: P, cfg_file: P) -> BuilderResult {
        debugln!("Creating clog with \n\tdir: {:?}\n\tcfg_file: {:?}",
            dir.as_ref(),
            cfg_file.as_ref());
        let clog = try!(Clog::_with_dir(dir));
        clog.try_config_file(cfg_file.as_ref())
    }
pub fn with_dir_and_file < P : AsRef < Path > > ( dir : P , cfg_file : P ) -> BuilderResult { debugln ! ( " \n \t \n \t " dir as_ref ( ) cfg_file as_ref ( ) ) ; let clog = try ! ( Clog with_dir ( dir ) ) ; clog . try_config_file ( cfg_file . as_ref ( ) ) }
Creates a `Clog` struct using a specific git working directory OR project directory as
well as a custom named TOML configuration file.
Creates a ` Clog ` struct using a specific git working directory OR project directory as well as a custom named TOML configuration file .
dir
P
cfg_file
P
dir
P
cfg_file
P
example
None
use clog::clog;
let clog = Clog::with_dir_and_file("/myproject",
"/myproject/clog_conf.toml").unwrap_or_else(|e| {
e.exit();
});
```
let clog = Clog :: with_dir_and_file ( " / myproject " " / myproject / clog_conf . toml " ) . unwrap_or_else ( |e| { e . exit () ; } ) ; ` ` `