Файли
openidea/src/features/vcs/FetchButton.tsx
T
l0ng-ai 401c542647 feat(vcs): improve Git workflows (#5174)
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.
2026-11-22 21:57:30 +08:00

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}
/>
);
}