@jannael/glinter 1.0.2 → 1.0.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/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1178,7 +1178,7 @@ async function main() {
|
|
|
1178
1178
|
return;
|
|
1179
1179
|
}
|
|
1180
1180
|
const warnings = new Set;
|
|
1181
|
-
const entries = output.split("\x00");
|
|
1181
|
+
const entries = output.split("\x00").filter(Boolean);
|
|
1182
1182
|
const changes = [];
|
|
1183
1183
|
for (let i = 0;i < entries.length; i++) {
|
|
1184
1184
|
const entry = entries[i];
|
|
@@ -1186,6 +1186,9 @@ async function main() {
|
|
|
1186
1186
|
continue;
|
|
1187
1187
|
const status = entry.slice(0, 2);
|
|
1188
1188
|
const file = entry.slice(3);
|
|
1189
|
+
const isStaged = status[0] !== " " && status[0] !== "?";
|
|
1190
|
+
if (isStaged)
|
|
1191
|
+
continue;
|
|
1189
1192
|
let displayPath = file;
|
|
1190
1193
|
const value = file;
|
|
1191
1194
|
if (status.startsWith("R") || status.startsWith("C")) {
|