@harryisfish/gitt 1.6.2 → 1.6.3
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/dist/commands/clean.js +6 -1
- package/package.json +2 -2
package/dist/commands/clean.js
CHANGED
|
@@ -58,9 +58,14 @@ async function cleanDeletedBranches(options = {}) {
|
|
|
58
58
|
}
|
|
59
59
|
else {
|
|
60
60
|
// Default mode: check "gone" branches
|
|
61
|
+
// Note: label may contain newlines/whitespace when branch names are long
|
|
61
62
|
const goneBranches = branchSummary.all.filter(branch => {
|
|
62
63
|
const branchInfo = branchSummary.branches[branch];
|
|
63
|
-
|
|
64
|
+
if (!branchInfo.label)
|
|
65
|
+
return false;
|
|
66
|
+
// Normalize whitespace and check for "gone" status
|
|
67
|
+
const normalizedLabel = branchInfo.label.replace(/\s+/g, ' ');
|
|
68
|
+
return normalizedLabel.includes(': gone]');
|
|
64
69
|
});
|
|
65
70
|
candidates = goneBranches.map(b => ({ name: b, reason: 'Remote deleted' }));
|
|
66
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harryisfish/gitt",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "A command-line tool to help you manage Git repositories and remote repositories, such as keeping in sync, pushing, pulling, etc.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -61,4 +61,4 @@
|
|
|
61
61
|
"README.md",
|
|
62
62
|
"LICENSE"
|
|
63
63
|
]
|
|
64
|
-
}
|
|
64
|
+
}
|