Skip to content

Commit b2db96d

Browse files
authored
Merge pull request #59 from Alokit-Innovations/tr/fixDiffCommand
Fix git diff command
2 parents d93fddc + fdaeb8b commit b2db96d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

devprofiler/src/reviewer.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,9 @@ fn store_hunkmap(hunkmap: HunkMap, einfo: &mut RuntimeInfo) {
263263

264264
fn get_excluded_files(prev_commit: &str, next_commit: &str, einfo: &mut RuntimeInfo) -> Option<(Vec<StatItem>, Vec<StatItem>)> {
265265
// Use the command
266+
let commit_range = format!("{}...{}", prev_commit, next_commit);
266267
match Command::new("git")
267-
.args(&["diff", prev_commit, next_commit, "--numstat"])
268+
.args(&["diff", &commit_range, "--numstat"])
268269
.output() {
269270
Ok(resultstat) => {
270271
let stat = resultstat.stdout;
@@ -401,4 +402,4 @@ pub(crate) fn unfinished_tasks(provider: &str, repo_slug: &str, einfo: &mut Runt
401402
repo_owner: repo_owner, repo_name: repo_name, prhunkvec: prvec };
402403
store_hunkmap(hunkmap, einfo);
403404
}
404-
}
405+
}

0 commit comments

Comments
 (0)