Skip to content

Commit

Permalink
Merge pull request #34 from glfmn/rename
Browse files Browse the repository at this point in the history
Include rename information in collected stats
  • Loading branch information
glfmn authored Sep 16, 2019
2 parents 45dd733 + aecaad1 commit 8561b25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ impl Stats {

let mut opts = git2::StatusOptions::new();

opts.include_untracked(true).recurse_untracked_dirs(true);
opts.include_untracked(true)
.recurse_untracked_dirs(true)
.renames_head_to_index(true);

if let Ok(statuses) = repo.statuses(Some(&mut opts)) {
for status in statuses.iter() {
Expand Down

0 comments on commit 8561b25

Please sign in to comment.