Repository navigation
Add git extension - #22550
Add git extension#22550
Conversation
- feat: Improve Git features and UI ergonomics - docs(README): Refine wording and improve grammar - docs: update and restructure README with more details - refactor(commands): Rename URL trackers to issue trackers - feat(diff, docs): Enhance binary diff and README content - refactor(actions): Update "Attached Links" submenu title - docs(README): add support section - docs(metadata): Update git-1.png - feat(ui): Enhance action icons and copy to clipboard items - refactor(actions): consolidate copy to clipboard actions - refactor(git-manager): unify push methods and add force push for tags - feat: Add push all tags action and optimize hooks - docs(readme): Update attached links feature documentation - feat(remote-host-parser): Add keyboard shortcuts to actions - feat(remote): enhance fetch and remote web page links - refactor: Improve list detail rendering and Git logic - refactor(branches): Refactor Branch.upstream property to object - feat(tag): Allow creating tags from any reference - feat(ui): Unify remote web actions and enhance consistency - chore(extension): Update metadata and add media assets - feat(remotes): Add avatar support for remote host icons - fix(url-trackers): Show toast for invalid regex patterns - fix(ai-prompts): Improve emoji parsing and editing - feat: Improve clone repository workflow - refactor(language-detector): Remove HTML and CSS detection - feat(ui): Enhance remote actions and streamline views - refactor(remote-actions): Show file page in browser - feat(remotes): Add action to open branch on remote host - refactor(manage-repositories): Extract view actions to new component - Remove blank line in extractRepoNameFromUrl - feat(ai-prompts): Add icons and built-in presets - feat(ai-presets): introduce explicit default preset management - feat: Add support for more languages and file extensions - refactor: Remove redundant empty array default for remotes - feat(git): allow skipping hooks on commit failure - feat: enhance conflict resolution and path consistency - feat(merge-conflicts): add file-level conflict resolution - feat(conflicts): Enhance conflict status handling and display - refactor(ui): Enhance alert and action button labels and styles - refactor(conflict-resolver): simplify conflict parsing and types - feat(branch): enhance copy branch name action and commit filtering - feat: Add actions to resolve all merge conflicts - feat(file-actions): Add \'Show in Finder\' action - feat(merge-resolve-view): Enhance conflict resolution UX and data structure - feat: Add action to copy file URL from remote host - feat: Enhance diff display, commit filtering, and conflict resolution UX - feat(status-view): enhance empty state display based on Git mode - feat: Add \'Rebase to Here\' action for commits - refactor: Improve merge conflict resolution UI - Refactor FileMergeResolveView to use ConflictOptionItem - docs: remove merge conflict resolution documentation - feat(ui): improve patch and stash creation options order and clarity - refactor: Unify file path handling and simplify patch/stash logic - Refactor patch and stash actions to use unified scope - feat: Add actions to create patch/stash for single files - feat: enhance conflict resolution and safety - Refactor useConflictResolver hook and remove redundant UI element - Refactor conflict resolution to use a custom hook - feat: Add Git merge conflict resolution feature - refactor(status): Standardize repository status mode representation - feat: enhance Git actions and AI commit message generation - feat: enhance git status actions and conflict handling - feat: update branch display name and button title - refactor: update AI prompt preset identifiers and functionality - fix: update remote display names and improve UI consistency - chore: update project documentation and structure - refactor: reorganize project structure and update imports - fix: ensure draft is cleared after successful commit - feat: rename commit action for clarity - refactor: clean up unused code in GitManager - feat: add BranchShowCommitsAction and improve navigation in CommitDetailsView - fix: simplify tag retrieval format in git-manager - feat(tags): add tags management functionality - refactor: simplify commit detail formatting - feat: enhance tag and branch actions - Refactor CommitMessageForm to support commit context - fix: reorder WorkspaceNavigationActions and add Patch section - refactor: replace SharedActionsSection with inline actions - refactor: update BranchesView actions and remove SharedActionsSection - refactor: simplify branch filter display logic - refactor: replace path manipulation with basename for clarity - refactor: consolidate file action components - refactor: simplify import statements - feat: refactor repository context and improve component structure - refactor: remove environmentPath preference and streamline environment variable handling - feat: add environment variable management for Git operations - feat: add remotesHosts prop to various components - refactor: simplify error handling in GitManager constructor - refactor: update repository list state key and improve UI elements - refactor: update repository list state key and improve UI elements - refactor: remove unnecessary file existence check in FileDiscardAction - feat: add clone repository functionality - fix: update RemoteListItem to use \'tag\' and add icon - feat: Refactor Remotes management and enhance connectivity checks - refactor: improve language handling and icon integration - feat: enhance fetch action with remote support - refactor: remove selectedCommitId from CommitsView and related components - feat: enhance tag management with remote support - fix: improve commit detail formatting and error handling - update branch display format and reorder repository item accessories - refactor: simplify handleCommit usage in CommitMessageView - handle commit function to require remote parameter - enhance: improve remote section titles in repository actions - feat: add remotesHosts support to branch and commit actions - Refactor: Allow pushing to specific remotes - feat: enhance remote repository details and clean up repository management - Add URL tracker configuration and refactor remote host icons - feat: enhance commit view and refactor git manager - Add remote host icons and SVG assets - Add Git remote metadata fetching and hook - Add types for Git remote metadata - refactor: clean up preferences and improve key handling - refactor: clean up imports and remove unused shortcut - feat: Add ability to set default app for opening repositories - refactor: simplify detail toggle actions - refactor: reorder commit navigation actions and add first-parent option - feat: enhance commit navigation and pagination - feat: add file restore action to commit and file history views - feat: add last visited repository tracking - fix: update dependency in CommitListItem hook - feat: add force push action for branches - refactor: enhance upstream branch handling - refactor: rename section title for clarity - feat: add repository view management - refactor: remove useProjectLanguage hook and integrate language detection - refactor: simplify FileListItem function declaration - refactor: remove shortcut props from FileOpenAction and FileOpenWithAction - feat: add useProjectLanguage hook for language detection - feat: add create patch action and update file actions - feat: add current branch support to commit and status views - refactor: update confirmation alert for branch deletion - feat: add submission state to commit message form - refactor: rename revalidateHistory to revalidateCommits and revalidateBranches - feat: add patch creation and application functionality - fix: add unique keys to tag sections and refactor path retrieval - fix: update tooltip messages for file actions - fix: improve draft message handling in CommitMessageForm - Add AI message prompt management feature - feat: refactor Git utilities and enhance branch/commit views - feat: update dependencies and enhance file views - feat: update branch display names in UI components - feat: add new SVG icons and update action icons - feat: streamline error handling and validation - refactor: enhance tooltips in InteractiveRebaseEditorView for clarity - feat: update commit list item icon logic and revalidate branches - feat: update branch handling to use display names - feat: refactor CommitsView and CommitActions for improved UI and functionality - feat: update BranchListItem tooltip and icon, modify CommitCheckoutAction icon, and remove commit hash validation - feat: update conflicted file status icon - feat: enhance branch and commit actions - feat: enhance branch deletion confirmation - feat: update checkoutRemoteBranch to accept upstream parameter - feat: refactor CommitsView to use BranchesState - feat(branches): optimize branch indicators and improve performance - feat: add auto-generate commit message option - feat: enhance interactive rebase and status views - feat: improve interactive rebase handling and loading state - fix: update cat command in shell script for GitManager - feat: add environmentPath option and improve branch actions - feat: add file change statistics to commit diff view - feat: enhance UI and improve navigation titles - feat: update action panel in CommitDiffView - fix: replace spaces with hyphens in branch name input - feat: add interactive rebase functionality - feat: rename recent repositories to manage repositories - feat: rename recent repositories to manage repositories - feat: update package.json and recent-repositories.tsx - feat: enhance repository actions in RecentRepositories component - feat: update file actions and recent repositories - feat: optimize commit URL extraction and clean up imports - feat: improve commit message prompt logic - feat(branch): improve branch deletion logic - feat: enhance commit message form with amend functionality - feat(git-utils): improve error handling and notification system - feat: enhance CommitMessageForm with amend toggle and trim - fix(StatusView): remove unnecessary clearSearchBar call - feat(branch-actions): unify branch checkout actions and improve messages - feat: add clearSearchBar functionality to StatusView - feat: add pull options and update UI components - feat: update required preferences and change icons - feat: rename revalidate prop and add revalidateHistory - fix: improve branch name validation and replace spaces with dashes - fix: update regex to correctly match upstream branch format - fix: update default max commits to load from 100 to 30 - feat: update app preferences and optimize hooks - feat: update Branches and Commits views with improved state management - feat: добавлено ограничение на максимальное количество загружаемых веток - Изменил логику обработки URL в коммитах и обновил иконку в панели действий - feat: обновил логику работы с ветками и статусом - feat(branches): обновил управление ветками и удалил ненужные действия - feat: добавил возможность управления выполнением хука useGitCommits - Изменил фильтрацию веток и удалил проверку локальной ветки - feat(url-tracker): добавил поддержку нового трекера URL - feat: обновил интерфейс управления коммитами - Изменил формат отображения даты в подсказке элемента списка коммитов. - Заменил метод `toLocaleString()` на `Intl.DateTimeFormat` для улучшения форматирования даты и времени. - feat: добавлен фильтр для текущей ветки - Исправил порядок выполнения операций в форме коммитов - fix: исправил порядок вызова функции pop() - fix: исправил порядок вызова функции pop() - feat: добавлены новые настройки для внешнего Git-клиента - Изменил цвета иконок файлов в зависимости от статуса - Удалил настройки максимального количества файлов для отображения и оптимизировал получение предпочтений. - Удалил ненужные состояния и логи - feat: добавлена поддержка валидации для нескольких репозиториев - feat: увеличил максимальное количество загружаемых коммитов и улучшил описание - feat: добавлена возможность добавления репозиториев - Обновил зависимости и улучшил интерфейс - feat: добавлено действие переименования ветки - feat: обновил действия с файлами и улучшил интерфейс - fix: обновлены зависимости и улучшен интерфейс - feat(branches): добавлено отображение удаленных веток - feat: улучшена логика пуша веток - feat: добавлены действия для пуша ветки - feat: добавил сочетание клавиш для коммита изменений - Добавил поддержку цвета для иконки в компоненте фильтра веток - feat: обновил текстовые подсказки для поиска - feat: Удален компонент ErrorView и заменен на нативные EmptyView - feat: удалены компоненты EmptyView и обновлены состояния пустых списков - Добавил выпадающий список для выбора представлений - Изменен форматировщик дат - feat: добавлен фильтр по веткам для отображения коммитов - feat: добавил форматирование дат для отображения в списках коммитов и сташей - feat: обновил действия для работы с ветками и коммитами - feat: добавил навигацию после завершения коммита - fix: удалены лишние импорты и отладочный вывод - feat: обновлены функции обработки коммитов и навигации - feat: добавлены иконки и подсказки для состояния веток - Обновил параметры и улучшил отображение коммитов - fix: очистка сообщения AI перед обновлением - fix: обновить сочетание клавиш и добавить проверку на наличие изменений в коммите - feat: добавление формы для генерации сообщений коммитов с поддержкой AI - Add force push confirmation and minor UI adjustments - feat(commit): Add AI-powered commit message generation with draft support - Обновлены компоненты StatusView и FileActions для поддержки новых статусов файлов, включая "untracked". Изменены типы данных в хуке useGitDiff и GitManager для более точной обработки статусов файлов. Оптимизирована логика получения диффов с учетом новых статусов. - Упрощено отображение файлов в компоненте CommitDiffView, удалена избыточная логика группировки файлов по статусу. Обновлены типы статусов файлов для более точного отображения изменений. Оптимизирована логика получения диффа в хуке useGitDiff с добавлением обработки больших диффов. Обновлены функции для работы с изменениями файлов в GitManager. - Упрощено отображение названий файлов в компонентах CommitDiffView и StatusView. Удалена лишняя логика из функции getFileTitle, теперь названия файлов формируются непосредственно в JSX. Обновлены компоненты CommitsView и FileActions для улучшения обработки данных о коммитах и действий с файлами. - Оптимизированы компоненты OpenRepository и RecentRepositories для улучшения работы с недавними репозиториями. Удалены ненужные эффекты и добавлены колбэки для обработки открытия репозиториев. Обновлены компоненты CommitDiffView и StatusView для улучшения отображения информации о файлах и диффах. Внедрена функция очистки диффа в GitManager для более точного отображения изменений. - Добавлена функция getFileStatusText для улучшения отображения статусов файлов в компоненте CommitDiffView. Обновлены подсказки для иконок файлов. Изменены сочетания клавиш для копирования пути файла в компоненте FileActions. Оптимизирована логика получения диффа в GitManager с добавлением новых опций. - Обновлены компоненты RecentRepositories, BranchesView, CommitDiffView, CommitsView, StashesView и StatusView для улучшения отображения информации и добавления ключевых слов. Введена функция замены шаблонов URL на ссылки в сообщениях коммитов. Оптимизирована логика обработки данных и интерфейсов для поддержки новых функций. - Добавлены новые действия для работы с ветками и коммитами. Реализована возможность проверки и переключения на коммиты, а также добавлены действия для выполнения pull и checkout для локальных веток. Оптимизированы функции GitManager для обработки checkout веток и коммитов. Обновлены интерфейсы компонентов для поддержки новых функций. - Обновлен компонент CommitDiffView для улучшения обработки выбора файлов и отображения диффов. Добавлена проверка существования файлов перед выполнением действий, а также оптимизирована логика загрузки диффов в зависимости от выбранного файла. Изменены интерфейсы и типы данных для поддержки новых функций. - Добавлено использование existsSync для проверки существования файлов перед выполнением действий в компонентах FileActions и StatusView. Оптимизировано отображение действий, связанных с файлами, в зависимости от их наличия на диске. Улучшена логика отображения сообщений о выполнении команд в GitManager. - Обновлены компоненты RecentRepositories и StatusView для улучшения отображения информации о репозиториях и файловом статусе. В RecentRepositories заменен способ отображения пути репозитория на использование аксессуаров. В StatusView добавлено состояние для выбранного файла и улучшена логика загрузки диффа в зависимости от выбранного файла. - Удалены настройки для регулярного выражения и шаблона URL для интеграции с тикетами из package.json. Обновлены компоненты для более чистого отображения навигационных действий. Добавлен новый компонент для настройки трекеров URL, который позволяет пользователям управлять конфигурациями трекеров URL. Обновлены интерфейсы и типы данных для поддержки новых функций. - Add ticket integration with configurable regex and URL template - Обновлены правила кодирования, добавлены новые действия для работы с директориями репозитория. Изменены компоненты для использования RepositoryDirectoryActions вместо RepositoryActions. Обновлены интерфейсы и типы данных для поддержки новых функций, включая навигацию к статусу после применения сташа. - Добавлены действия для создания сташа в интерфейсе StatusView и FileListItem. Обновлены компоненты для поддержки сташа отдельных файлов и всех изменений. Изменены иконки и улучшены сообщения для действий сташа. Обновлен GitManager для обработки сташа конкретных файлов. - Удалены неиспользуемые переменные и упрощена логика обработки статусов файлов в Git. Добавлены новые действия для отмены всех изменений и улучшены иконки для различных типов файлов. Обновлены интерфейсы и типы данных для поддержки новых статусов файлов. - First commit
|
Congratulations on your new Raycast extension! 🚀 Due to our current reduced availability, the initial review may take up to 10 business days. Once the PR is approved and merged, the extension will be available on our Store. |
left a comment
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR adds a comprehensive Git GUI client extension to Raycast with 5 commands for repository management, cloning, configuration, and AI-powered features. The extension provides a complete Git workflow solution including branch management, commit operations, interactive rebasing, conflict resolution, stash management, and remote operations. Key architectural patterns include a centralized GitManager class for all Git operations, React hooks for data fetching with caching (useGitBranches, useGitStatus, etc.), and view components that follow Raycast's List/Detail UI patterns. The extension integrates external services through issue tracker configuration, supports AI-powered commit message generation, and includes sophisticated features like background repository cloning and interactive rebase editing. The codebase demonstrates extensive Git functionality while following Raycast extension best practices for state management, error handling, and user interactions.
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
extensions/git/package.json |
4/5 | Adds comprehensive Git extension with 5 commands and extensive preferences |
extensions/git/src/utils/git-manager.ts |
4/5 | Core GitManager class providing all Git operations with complex error handling |
extensions/git/src/components/views/CommitsView.tsx |
4/5 | Comprehensive commits view with filtering, actions, and issue tracker integration |
extensions/git/src/components/views/StatusView.tsx |
4/5 | Git status view with diff viewer and file staging operations |
extensions/git/src/components/views/CommitMessageView.tsx |
3/5 | Commit form with AI generation and complex state management patterns |
extensions/git/src/hooks/useRepositoriesList.ts |
3/5 | Repository list management with validation and language detection |
extensions/git/src/utils/environment-utils.ts |
2/5 | Environment variable loading with hardcoded shell assumptions and security risks |
extensions/git/src/hooks/useConflictResolver.ts |
2/5 | Conflict resolution hook with synchronous file I/O and missing error handling |
extensions/git/src/components/views/InteractiveRebaseEditorView.tsx |
4/5 | Interactive rebase editor with commit manipulation and proper user confirmations |
extensions/git/src/components/views/RemotesView.tsx |
4/5 | Git remotes management with connectivity checking and CRUD operations |
extensions/git/src/components/views/StashesView.tsx |
4/5 | Stash management interface with apply/drop operations and proper empty states |
extensions/git/src/components/views/FileHistoryView.tsx |
4/5 | File history viewer with diff display and restoration capabilities |
extensions/git/src/clone-repository.tsx |
4/5 | Repository cloning form with validation and background process integration |
extensions/git/src/hooks/useIssueTracker.ts |
4/5 | Issue tracker configuration management with regex validation |
extensions/git/src/components/icons/StatusIcons.tsx |
4/5 | Icon mapping functions for git file status indicators |
extensions/git/src/hooks/useGitRepository.ts |
5/5 | Repository path validation and GitManager instance creation |
extensions/git/src/hooks/useGitBranches.ts |
5/5 | Branch data fetching with proper caching per repository |
extensions/git/src/hooks/useGitStatus.ts |
4/5 | Git status fetching with cached promise integration |
extensions/git/src/components/actions/ToggleDetailAction.tsx |
5/5 | Reusable detail view toggle component with cached state |
extensions/git/src/types/index.ts |
5/5 | TypeScript type definitions for preferences and configurations |
extensions/git/eslint.config.js |
5/5 | Standard Raycast ESLint config with underscore-prefixed parameter rule |
extensions/git/.prettierrc |
5/5 | Standard Raycast Prettier configuration |
extensions/git/.cursor/rules/code-style.mdc |
5/5 | Comprehensive development guidelines for consistent coding patterns |
Confidence score: 3/5
- This PR introduces a complex Git client with multiple potential issues that require careful review
- Score lowered due to environment loading risks, missing error handling in file operations, synchronous I/O usage, hardcoded shell assumptions, typos in component names, and missing awaits in async functions
- Pay close attention to
git-manager.ts,environment-utils.ts, anduseConflictResolver.tsfor potential production issues
23 files reviewed, 23 comments
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
- refactor(utils): Improve shell environment loading - Merge branch \'contributions/merge-1761930882525\' into develop - Pull contributions - fix(components): Correct CopyToClipboardMenuAction typo
commented
Nov 4, 2025
|
Thanks for your contribution 🔥 It looks awesome indeed, but don't we have multiple extensions in the store dealing with git operations, or is there nothing like this one @Ernest0-Production 🙂 |
|
Yes, I'm aware that there are already several Git extensions, but all of them, despite focusing on a single functionality (commit generation, branch name generation, worktree, or simply listing repositories), are very limited. None of them, within their functionality, fully addressed a specific problem/task, and some were buggy even with basic use :c I decided to take a more comprehensive approach and created a full-fledged Git GUI Client. Just like GitHub extension from Raycast Team and many-many smaller GitHub-related extensions from 3rd party opensourcers – my extension offers a full-fledged mini-app, not just a shortcut-like action. For this reason, I will call this extension simply "Git" without any postscript. |
|
|
@pernielsentikaer Hi 👋 |
commented
Nov 13, 2025
|
Published to the Raycast Store: |
commented
Nov 13, 2025
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
This is a full-featured Git GUI client for Raycast, containing basic repository management functionality.
The full list of features is listed in README.md
Screencast
CleanShot.2025-10-31.at.20.00.47-converted.mp4
CleanShot.2025-10-31.at.20.00.47-converted.2.mp4
CleanShot.2025-10-31.at.20.00.47-converted.mp4
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder