From f2a9f682849f0b843d4cc77c245607d0b0493f29 Mon Sep 17 00:00:00 2001 From: Sverre Rabbelier Date: Fri, 11 Jul 2008 22:25:05 +0200 Subject: [PATCH] gitstats: Allow for checking deleted files in commitsThatTouched By adding the '--' infix it is possible to specify files that are not present in the working directory. --- src/git_stats/commit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git_stats/commit.py b/src/git_stats/commit.py index 033f92a..d8a301b 100644 --- a/src/git_stats/commit.py +++ b/src/git_stats/commit.py @@ -128,7 +128,7 @@ def commitsThatTouched(paths, relative=False): git = Repo(".").git - result = git.rev_list("HEAD", with_keep_cwd=relative, *paths) + result = git.rev_list("HEAD", "--", with_keep_cwd=relative, *paths) touched = result.split('\n') -- 2.11.4.GIT