дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-08 19:02:17 +02:00
feat(vcs): compare folder selections with revisions across repositories (#602)
Compare with Branch or Revision only handled one file, so reviewing a folder meant opening each file. Folders, the project root and multiple selections now open a changes tree against the chosen revision, with per-file diffs on demand. A single file keeps its direct diff. Each path resolves against its own repository through the root registry. In a multi-repo workspace the picker offers shared revisions such as "main in 3 repositories" as well as per-repository ones, results are grouped by repository, and content outside any repository or a repository missing the revision is stated in the result. Listing is cancellable and off the UI thread, includes worktree and untracked changes, and a rename leaving the selection shows as a delete. Show Diff on folders reuses the same tree. Verified on macOS, and against a remote host over the server protocol. A remote window, Windows and Linux were not run. Fixes #567
Цей коміт міститься в:
1 джерело
0a71f6be88
коміт
9e35cfc064
20 files changed
+1404
-121
No files matched your search
@@ -282,3 +282,49 @@
|
||||
.manageRowSelected:hover {
|
||||
background: var(--bg-list-selected);
|
||||
}
|
||||
|
||||
.comparison {
|
||||
display: flex;
|
||||
height: min(520px, 65vh);
|
||||
min-height: 180px;
|
||||
padding: 0 12px 12px;
|
||||
gap: 10px;
|
||||
}
|
||||
.comparisonTree {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.comparisonWithDiff .comparisonTree {
|
||||
flex: 0 0 30%;
|
||||
}
|
||||
.comparisonDiff {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.compareNotice {
|
||||
padding: 6px 14px;
|
||||
color: var(--fg-subtle);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.compareAdded {
|
||||
color: var(--vcs-added);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.compareRemoved {
|
||||
color: var(--vcs-deleted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
@media (max-width: 760px) {
|
||||
.comparisonWithDiff {
|
||||
flex-direction: column;
|
||||
height: 65vh;
|
||||
}
|
||||
.comparisonWithDiff .comparisonTree {
|
||||
flex: 0 0 30%;
|
||||
min-height: 90px;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Заблокувати користувача