@yiln-dsh/dsh-plugin-file-explorer 0.9.0 → 0.9.1
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/README.md +5 -4
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ A DSH `dsh.bundle` that contributes a workspace file explorer page to the
|
|
|
26
26
|
current branch, refreshable),
|
|
27
27
|
- pill decorations for branches / remotes / tags / HEAD,
|
|
28
28
|
- an "Uncommitted changes" row from `git status` (count + changed files vs
|
|
29
|
-
HEAD),
|
|
29
|
+
HEAD), listing each file inside an untracked directory individually,
|
|
30
30
|
- click a commit to expand its full message and changed-file list with
|
|
31
31
|
A/M/D/R status badges,
|
|
32
32
|
- click a file to open its diff patch (commit shows `git show`, working tree
|
|
@@ -45,7 +45,7 @@ A DSH `dsh.bundle` that contributes a workspace file explorer page to the
|
|
|
45
45
|
|
|
46
46
|
## Install
|
|
47
47
|
|
|
48
|
-
The package version is `@yiln-dsh/dsh-plugin-file-explorer@0.9.
|
|
48
|
+
The package version is `@yiln-dsh/dsh-plugin-file-explorer@0.9.1`.
|
|
49
49
|
|
|
50
50
|
The right-panel package must be installed in the same `web` profile:
|
|
51
51
|
|
|
@@ -62,7 +62,7 @@ pnpm pack
|
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
```bash
|
|
65
|
-
dsh plugin --profile web add ./yiln-dsh-dsh-plugin-file-explorer-0.9.
|
|
65
|
+
dsh plugin --profile web add ./yiln-dsh-dsh-plugin-file-explorer-0.9.1.tgz
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
### npm package
|
|
@@ -112,7 +112,8 @@ apply the new profile composition.
|
|
|
112
112
|
workspace root), then run `git log --all --date-order` (default 300 commits,
|
|
113
113
|
`req.all === false` for the current branch only), `git diff-tree -m
|
|
114
114
|
--first-parent` for commit file lists, `git show` / `git diff HEAD` for
|
|
115
|
-
patches, and `git status --porcelain=v1 -b` for the working tree
|
|
115
|
+
patches, and `git status --porcelain=v1 -b -uall` for the working tree, so
|
|
116
|
+
every file inside an untracked directory is returned individually. Commit
|
|
116
117
|
hashes are validated against `^[0-9a-fA-F]{6,40}$` (or the `WORKING`
|
|
117
118
|
sentinel) and file paths against a non-option, non-control-character check.
|
|
118
119
|
- Rows have a fixed 34px height, so the hover action swap never changes the
|
package/index.js
CHANGED
|
@@ -653,7 +653,7 @@ export function apply(ctx) {
|
|
|
653
653
|
if (req.method === 'POST') req = await readJson(req)
|
|
654
654
|
try {
|
|
655
655
|
const { git, root } = await resolveRepo(req.path)
|
|
656
|
-
const status = await runGit(git, root, ['status', '--porcelain=v1', '-b'], 1024 * 1024)
|
|
656
|
+
const status = await runGit(git, root, ['status', '--porcelain=v1', '-b', '-uall'], 1024 * 1024)
|
|
657
657
|
if (status.code !== 0) {
|
|
658
658
|
sendJson(res, 200, { ok: false, error: cleanGitError(status.stderr, 'git status failed') })
|
|
659
659
|
return
|