Skip to content

Commit

Permalink
Merge pull request #6 from jnises/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
jnises authored Nov 5, 2022
2 parents 32b699d + ca0ef44 commit 4e069e2
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 54 deletions.
160 changes: 111 additions & 49 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "git-suggest-ownership"
authors = ["Joel Nises <[email protected]>"]
version = "0.4.0"
version = "0.5.0"
edition = "2021"

[profile.release]
Expand Down
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use thread_local::ThreadLocal;
#[command(version, about, long_about = None)]
struct Opt {
/// Start with the files with the smallest percentage
#[arg(short, long, conflicts_with_all = &["show_authors", "max_authors"])]
#[arg(long, conflicts_with_all = &["show_authors", "max_authors"])]
reverse: bool,

/// Verbose mode (-v, -vv, -vvv, etc), disables progress bar
Expand All @@ -30,7 +30,7 @@ struct Opt {
no_progress: bool,

/// Include all files, even the ones with no lines changed by you
#[arg(short, long, conflicts_with_all = &["show_authors", "max_authors"])]
#[arg(long, conflicts_with_all = &["show_authors", "max_authors"])]
all: bool,

/// Your email address. You can specify multiple. Defaults to your configured `config.email`
Expand All @@ -49,7 +49,7 @@ struct Opt {
max_authors: u32,

/// Limit to the specified directory. Defaults to the entire repo.
#[arg(long)]
#[arg(short, long)]
dir: Option<PathBuf>,
// TODO add option to limit the depth of tree printed
}
Expand Down Expand Up @@ -371,7 +371,7 @@ fn main() -> Result<()> {
.par_iter()
.filter_map(|path| {
debug!("blaming {}", path.display());
let repo = repo_tls.get_or_try(&get_repo).expect("unable to get repo");
let repo = repo_tls.get_or_try(get_repo).expect("unable to get repo");
let contributions = Contributions::try_from_path(repo, path);
progress.inc(1);
let contributions = match contributions {
Expand Down

0 comments on commit 4e069e2

Please sign in to comment.