mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-09-30 03:11:29 +02:00
Append stats even if last repo inspected had no matching commits
This commit is contained in:
parent
ba1c3341fe
commit
6d52ee3572
@ -247,7 +247,10 @@ class Changes(object):
|
|||||||
return other;
|
return other;
|
||||||
|
|
||||||
def get_commits(self):
|
def get_commits(self):
|
||||||
|
try:
|
||||||
return self.commits
|
return self.commits
|
||||||
|
except AttributeError:
|
||||||
|
return []
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def modify_authorinfo(authors, key, commit):
|
def modify_authorinfo(authors, key, commit):
|
||||||
|
@ -82,7 +82,7 @@ class Runner(object):
|
|||||||
format.output_header(repos)
|
format.output_header(repos)
|
||||||
outputable.output(ChangesOutput(summed_changes))
|
outputable.output(ChangesOutput(summed_changes))
|
||||||
|
|
||||||
if changes.get_commits():
|
if summed_changes.get_commits():
|
||||||
outputable.output(BlameOutput(summed_changes, summed_blames))
|
outputable.output(BlameOutput(summed_changes, summed_blames))
|
||||||
|
|
||||||
if self.timeline:
|
if self.timeline:
|
||||||
|
Loading…
Reference in New Issue
Block a user