дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 01:57:13 +02:00
Git Log could lose commits when filtering by several paths, draw wrong ancestry after filtering or collapsing rows, and open the wrong repository in multi-root views. The graph is now projected over the full commit DAG and laid out in Bek order, so filtered and collapsed views keep the real ancestry; each log view keeps its own filters and requests. Commit metadata, messages and path changes are kept in a persistent index (by object id, in the IDE's cache directory) with seekable paging, and the log gains parent-aware merge comparisons, a lazy revision browser, read-only logs of repositories outside the project (opened with command execution disabled), commit bookmarks, configurable built-in columns and batched commit details. The adapted IntelliJ algorithms are attributed in THIRD_PARTY_LICENSES.md. Closes #872 Co-authored-by: shohruh-genius <[email protected]>
17 рядки
616 B
TypeScript
17 рядки
616 B
TypeScript
import type { Commit } from "@/bindings";
|
|
import { commitRepo } from "./multiRoot";
|
|
|
|
/** Stable virtual bookmark target; uses the platform's groups, mnemonic and description model. */
|
|
export const commitBookmarkPath = (commit: Commit) =>
|
|
`git-log:${encodeURIComponent(commitRepo(commit) ?? "")}#${commit.id}`;
|
|
export function parseCommitBookmark(path: string): { repo: string; id: string } | null {
|
|
if (!path.startsWith("git-log:")) return null;
|
|
const [repo, id] = path.slice(8).split("#");
|
|
if (!id) return null;
|
|
try {
|
|
return { repo: decodeURIComponent(repo!), id };
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|