дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 01:01:17 +02:00
Improve OpenIDEA's Git workflows across commit and staging, branch and remote operations, merge and rebase, Git Log and signing, worktrees, stash and shelf, patch application, and clone settings. Adds a one-click stash for tracked changes across Git roots and lets users open a worktree branch's associated GitHub review from its context menu. Cloning now includes submodules by default (Settings › Version Control › Git, can be turned off). Repository entry points added here run in each repository's execution scope, so they use the project's own git executable.
18 рядки
510 B
TypeScript
18 рядки
510 B
TypeScript
import { useRunningActions } from "@/platform/actions";
|
|
import { useContextKeys } from "@/platform/context";
|
|
import { IconButton } from "@/ui";
|
|
|
|
export function FetchButton() {
|
|
const fetching = useRunningActions((s) => s.running.has("vcs.fetch"));
|
|
const disabled = useContextKeys((s) => !!s.vcsFetchDisabled);
|
|
return (
|
|
<IconButton
|
|
icon="git-fetch"
|
|
title={fetching ? "Fetching…" : "Fetch"}
|
|
size="small"
|
|
action="vcs.fetch"
|
|
disabled={disabled && !fetching}
|
|
/>
|
|
);
|
|
}
|