| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1da7444 commit 4114d19
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -116,7 +116,13 @@ def count(self, paths='', **kwargs): | |||
| 116 | 116 | Returns | |
| 117 | 117 | int | |
| 118 | 118 | """ | |
| 119 | - return len(self.repo.git.rev_list(self.sha, '--', paths, **kwargs).strip().splitlines()) | ||
| 119 | + # yes, it makes a difference whether empty paths are given or not in our case | ||
| 120 | + # as the empty paths version will ignore merge commits for some reason. | ||
| 121 | + if paths: | ||
| 122 | + return len(self.repo.git.rev_list(self.sha, '--', paths, **kwargs).splitlines()) | ||
| 123 | + else: | ||
| 124 | + return len(self.repo.git.rev_list(self.sha, **kwargs).splitlines()) | ||
| 125 | + | ||
| 120 | 126 | ||
| 121 | 127 | @property | |
| 122 | 128 | def name_rev(self): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments