Show correct number of commits in "About Repository"

This commit is contained in:
Danny Moesch 2019-01-06 19:59:16 +01:00 committed by Mingshen Sun
parent c18b70e7d7
commit f47e7d384c
2 changed files with 9 additions and 1 deletions

View file

@ -113,6 +113,10 @@ public class PasswordStore {
return SharedDefaults[.lastSyncedTime]
}
public var numberOfCommits: UInt {
return storeRepository?.numberOfCommits(inCurrentBranch: nil) ?? 0
}
private init() {
// File migration to group
migrateIfNeeded()