diff options
author | Nick Gerace <nickagerace@gmail.com> | 2020-12-15 21:41:39 -0500 |
---|---|---|
committer | Nick Gerace <nickagerace@gmail.com> | 2020-12-15 21:48:21 -0500 |
commit | 345d42e891aff14b371938ec571cee3657f9c8b4 (patch) | |
tree | ce6158ff356f3098660666186df5c3971ebbb3be /src/driver.rs | |
parent | 19ac8540e29e3a8cce7ea1a95ed90a701ae6e99e (diff) | |
download | gfold-345d42e891aff14b371938ec571cee3657f9c8b4.zip |
Add disable unpushed commit check
Add disable unpushed commit check to give users a choice. The unpushed
function currently does not account for every case, so having the flag
is a temporary solution that may also provide useful in its own right.
Diffstat (limited to 'src/driver.rs')
-rw-r--r-- | src/driver.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/driver.rs b/src/driver.rs index 4040b25..4830500 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -16,6 +16,7 @@ use log::debug; #[derive(Debug)] pub struct Config { + pub disable_unpushed_check: bool, pub no_color: bool, pub recursive: bool, pub skip_sort: bool, @@ -78,9 +79,12 @@ impl Results { if !&config.skip_sort { repos.sort(); } - if let Some(table_wrapper) = - util::create_table_from_paths(repos, &dir, &config.no_color) - { + if let Some(table_wrapper) = util::create_table_from_paths( + repos, + &dir, + &config.disable_unpushed_check, + &config.no_color, + ) { self.0.push(table_wrapper); } } |