Skip to content

Commit

Permalink
Merge pull request #59 from Alokit-Innovations/tr/fixDiffCommand
Browse files Browse the repository at this point in the history
Fix git diff command
  • Loading branch information
avikalpg authored Oct 17, 2023
2 parents d93fddc + fdaeb8b commit b2db96d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions devprofiler/src/reviewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,9 @@ fn store_hunkmap(hunkmap: HunkMap, einfo: &mut RuntimeInfo) {

fn get_excluded_files(prev_commit: &str, next_commit: &str, einfo: &mut RuntimeInfo) -> Option<(Vec<StatItem>, Vec<StatItem>)> {
// Use the command
let commit_range = format!("{}...{}", prev_commit, next_commit);
match Command::new("git")
.args(&["diff", prev_commit, next_commit, "--numstat"])
.args(&["diff", &commit_range, "--numstat"])
.output() {
Ok(resultstat) => {
let stat = resultstat.stdout;
Expand Down Expand Up @@ -401,4 +402,4 @@ pub(crate) fn unfinished_tasks(provider: &str, repo_slug: &str, einfo: &mut Runt
repo_owner: repo_owner, repo_name: repo_name, prhunkvec: prvec };
store_hunkmap(hunkmap, einfo);
}
}
}

0 comments on commit b2db96d

Please sign in to comment.