How aidan79225/gitcrisp works
GitCrisp is a PySide6 desktop Git client. Users open or switch repositories, inspect commit history and working-tree changes, then stage, commit, or perform Git operations through the UI; the app coordinates queries and commands against a repository adapter. Its major capabilities also include blame/file history, branch and remote management, conflict handling, tags, stashes, submodules, and worktrees. Several operation modules were not sampled, so those capability links are documented at subsystem level rather than inferred as internal call chains.
Main entry points: repo_lifecycle.py Repository lifecycle · main_window.py Main window flows · bus.py Query and command buses · queries.py Repository queries
Components 21
Desktop interface
- App startup
main.py - Repository lifecycle
git_gui/presentation/main_window/repo_lifecycle.py - Main window flows
git_gui/presentation/main_window/main_window.py - History and graph
git_gui/presentation/widgets/graph.py - Working tree and diff
git_gui/presentation/widgets/working_tree.py - Git operation dialogs
git_gui/presentation/dialogs - Worktree dialog
git_gui/presentation/dialogs/add_worktree_dialog.py
Application coordination
- Query and command buses
git_gui/presentation/bus.py - Repository queries
git_gui/application/queries.py - Repository commands
git_gui/application/commands.py
Git domain
- Git entities
git_gui/domain/entities.py - Repository ports
git_gui/domain/ports.py
Git infrastructure
- Pygit2 repository
git_gui/infrastructure/pygit2/repository.py - Git operation adapters
git_gui/infrastructure/pygit2 - File history adapter
git_gui/infrastructure/file_history_cli.py - Git process utilities
git_gui/infrastructure/git_process.py - Repository list store
git_gui/infrastructure/repo_store.py
Presentation support
- Theme system
git_gui/presentation/theme - Widget background
git_gui/presentation/widgets/background.py - Repository change monitor
git_gui/presentation/services/repo_change_detector.py
Other components
- Git user
Connections 21
- Git user → App startup: opens app
main.py - App startup → Repository lifecycle: opens window
main.py - Repository lifecycle → Query and command buses: coordinates operations
git_gui/presentation/main_window/repo_lifecycle.py - Main window flows → History and graph: presents history
- Main window flows → Working tree and diff: presents changes
- Main window flows → Git operation dialogs: offers Git actions
- Repository lifecycle → Worktree dialog: opens worktree flow
git_gui/presentation/main_window/repo_lifecycle.py - Worktree dialog → Widget background: uses widget
git_gui/presentation/dialogs/add_worktree_dialog.py - Query and command buses → Repository commands: constructs commands
git_gui/presentation/bus.py - Query and command buses → Repository queries: constructs queries
git_gui/presentation/bus.py - Repository commands → Repository ports: writes through
git_gui/application/commands.py - Repository queries → Repository ports: reads through
git_gui/application/queries.py - Repository commands → Git entities: uses domain types
git_gui/application/commands.py - Repository queries → Git entities: uses domain types
git_gui/application/queries.py - Pygit2 repository → Git operation adapters: composes adapters
git_gui/infrastructure/pygit2/repository.py - Pygit2 repository → File history adapter: constructs adapter
git_gui/infrastructure/pygit2/repository.py - Git operation adapters → Git process utilities: uses process utilities
git_gui/infrastructure/pygit2/repo_state_ops.py - File history adapter → Git process utilities: runs Git commands
git_gui/infrastructure/file_history_cli.py - Repository lifecycle → Repository list store: loads repository state
- Repository lifecycle → Repository change monitor: starts monitoring
git_gui/presentation/main_window/repo_lifecycle.py - Theme system → Widget background: styles widgets