Add submodule management and enable recursive clone by default #44

Merged
Christoph merged 1 commits from git-submodule into main 2026-09-16 20:59:35 +00:00
1 Commits
Author SHA1 Message Date
Christoph 66c85321ea feat(submodules): add submodule management and recursive clone
Add a new backend module to manage Git submodules (list, initialize/update,
stage, sync, add) and expose Tauri commands (list_submodules,
submodule_action, add_submodule). The implementation enforces safe relative
paths, a maximum nesting depth, and guards (dirty/conflicted checks and
initialization/no-op semantics) to avoid unsafe operations.

Refactor clone logic to a testable run_git_clone_command and enable
automatic initialization of submodules during clone by passing
--recurse-submodules. Also disallow certain submodule-related custom clone
flags so callers cannot override this behaviour.

Update README with a Submodules section and add frontend components and types
to surface submodule UI (dialogs, toolbar badge). Unit tests were added for
submodule discovery, initialization/update semantics, and recursive clone
behavior.
2026-09-16 22:31:14 +02:00