git-watchtower 1.9.1 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/git-watchtower.js +7 -7
- package/package.json +1 -1
package/bin/git-watchtower.js
CHANGED
|
@@ -993,11 +993,11 @@ async function refreshAllSparklines() {
|
|
|
993
993
|
return; // Don't refresh too often
|
|
994
994
|
}
|
|
995
995
|
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
if (branch.isDeleted) continue;
|
|
996
|
+
const currentBranches = store.get('branches');
|
|
997
|
+
for (const branch of currentBranches.slice(0, 20)) { // Limit to top 20
|
|
998
|
+
if (branch.isDeleted) continue;
|
|
1000
999
|
|
|
1000
|
+
try {
|
|
1001
1001
|
// Get commit counts for last 7 days (try remote, fall back to local)
|
|
1002
1002
|
const sparkResult = await execGitSilent(
|
|
1003
1003
|
['log', `origin/${branch.name}`, '--since=7 days ago', '--format=%ad', '--date=format:%Y-%m-%d'],
|
|
@@ -1027,11 +1027,11 @@ async function refreshAllSparklines() {
|
|
|
1027
1027
|
|
|
1028
1028
|
const counts = Array.from(dayCounts.values());
|
|
1029
1029
|
store.get('sparklineCache').set(branch.name, generateSparkline(counts));
|
|
1030
|
+
} catch (e) {
|
|
1031
|
+
// Skip this branch - don't let one failure abort all sparkline updates
|
|
1030
1032
|
}
|
|
1031
|
-
lastSparklineUpdate = now;
|
|
1032
|
-
} catch (e) {
|
|
1033
|
-
// Silently fail - sparklines are optional
|
|
1034
1033
|
}
|
|
1034
|
+
lastSparklineUpdate = now;
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
1037
1037
|
async function getPreviewData(branchName) {
|
package/package.json
CHANGED