lunel-cli 0.1.31 → 0.1.32
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 +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -396,7 +396,9 @@ async function handleGitStatus() {
|
|
|
396
396
|
const branch = branchResult.stdout.trim();
|
|
397
397
|
// Get status
|
|
398
398
|
const statusResult = await runGit(["status", "--porcelain", "-uall"]);
|
|
399
|
-
|
|
399
|
+
// Preserve leading whitespace in each porcelain line.
|
|
400
|
+
// Example: " M file" (unstaged-only) starts with a space that is semantically important.
|
|
401
|
+
const lines = statusResult.stdout.split(/\r?\n/).filter((line) => line.length > 0);
|
|
400
402
|
const staged = [];
|
|
401
403
|
const unstaged = [];
|
|
402
404
|
const untracked = [];
|