@laoyuehanni/dsh-git-worktree 0.4.11 → 0.4.12
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 +1 -1
- package/README.zh.md +1 -1
- package/lib/client.js +373 -16
- package/lib/git.d.ts +0 -8
- package/lib/git.js +45 -21
- package/lib/history.d.ts +15 -2
- package/lib/history.js +113 -27
- package/lib/index.d.ts +4 -0
- package/lib/index.js +11 -3
- package/lib/routes.d.ts +3 -2
- package/lib/routes.js +17 -2
- package/lib/wire.d.ts +17 -1
- package/lib/wire.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Repo: <https://github.com/LaoYueHanNi/dsh-git-worktree>
|
|
|
23
23
|
|
|
24
24
|
## Features
|
|
25
25
|
|
|
26
|
-
- **Commit graph**: expand the branch popup in place to browse branches on the left and their real commit history and merge graph on the right. Browsing does not check out a branch. Select a commit to see its author, date, full message and file summary; bodies start with a three-line preview and expand into an internally scrolling area. History loads
|
|
26
|
+
- **Commit graph**: expand the branch popup in place to browse branches on the left and their real commit history and merge graph on the right. Browsing does not check out a branch. Select a commit to see its author, date, full message and file summary; bodies start with a three-line preview and expand into an internally scrolling area. History loads the next page when its list scrolls to the end, and a Load more button remains; search covers loaded titles and hashes. The author menu lists every author on the branch and keeps that list in memory for the commit; a branch update, fetch, or reload drops the cache.
|
|
27
27
|
- **IDEA-style branch picker**: the branch menu treats `/` as a folder hierarchy — collapsible folders, last-segment labels, the checked-out branch's chain opens centered. Local and remote branches render as two collapsible groups (a single remote strips its prefix), with bottom search (ancestor folders kept, hits highlighted), locate-current-branch and expand/collapse tools, and green ↗N / blue ↙N divergence marks on tracking branches.
|
|
28
28
|
- **Remote branch checkout**: pick `origin/feat-x` in the remote group and it checks out in place with a tracking branch directly (no confirmation); the worktree toggle sends the pick to an isolated worktree instead.
|
|
29
29
|
- **Row context menu**: right-click a branch row for six verbs — check out (immediate, no confirmation), new branch, new branch and check out, rename branch (local rows), delete branch (local rows, the safe `-d`: git refuses unmerged commits and occupied branches), copy branch; a worktree row offers go-to-worktree, copy path, and remove worktree. Second-level dialogs open IN PLACE of the menu; in-place actions keep the menu open, so rows can be acted on in a run. Keyboard: arrow keys + Enter.
|
package/README.zh.md
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
## 功能
|
|
25
25
|
|
|
26
|
-
-
|
|
26
|
+
- **提交图谱**:分支菜单左侧的图谱按钮原位扩大浮层,左侧浏览分支,右侧查看真实提交与合并关系。浏览不会检出分支;选中提交可查看作者、时间、完整正文与文件摘要。正文默认三行缩略,可展开并内部滚动;历史滚到列表末端自动加载下一页,也可点“加载更多”;搜索已加载提交的标题或哈希。作者下拉列出该分支的全部作者,同一提交的名单缓存在内存里;分支更新、抓取或刷新后缓存失效。
|
|
27
27
|
- **IDEA 风格分支选择器**:分支菜单把 `/` 视为文件夹层级——可折叠文件夹、末段标签,当前分支所在链路默认展开并居中。本地与远程分支分两个可折叠分组(单远程自动剥掉前缀),底部搜索保留匹配分支的祖先文件夹并高亮命中,左侧工具栏提供定位当前分支与全部展开/折叠。本地和工作树行用绿色 ↗N / 蓝色 ↙N 表示领先/落后,分叉同时显示;未发布(无上游)显示不带数字的绿色 ↗(仓库没有任何远程时不显示),上游失效显示 `!`。
|
|
28
28
|
- **远程分支检出**:远程组里选中 `origin/feat-x` 直接原地检出并自动创建跟踪分支(免确认);勾选工作树开关则改为隔离进独立 worktree。
|
|
29
29
|
- **行级右键菜单**:分支行右键弹出六个动作——签出(免确认直接切)、新建、新建并检出、重命名分支(本地行)、删除分支(本地行,安全 `-d`,git 拒绝未合并提交与被占用分支)、复制分支;工作树行为跳到此工作树 + 复制路径 + 删除工作树。二级弹窗(命名/确认)直接在菜单位置就地展开,原地动作完成后菜单保持打开,可连续操作。键盘走方向键 + Enter。
|