diff options
| author | soryu <soryu@soryu.co> | 2026-01-15 18:25:10 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-15 18:25:10 +0000 |
| commit | 908973b5c08a8b7b624880843c512e8bddf37896 (patch) | |
| tree | be9b44f8ec39164ba202fadd5cd52ee646a6c2de /makima/src/daemon/ws/protocol.rs | |
| parent | 11c78ade600a2d74b8f033f18045a0c28fac4362 (diff) | |
| download | soryu-908973b5c08a8b7b624880843c512e8bddf37896.tar.gz soryu-908973b5c08a8b7b624880843c512e8bddf37896.zip | |
Implement git config inherit system
Diffstat (limited to 'makima/src/daemon/ws/protocol.rs')
| -rw-r--r-- | makima/src/daemon/ws/protocol.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/makima/src/daemon/ws/protocol.rs b/makima/src/daemon/ws/protocol.rs index 339f5a4..5c9004b 100644 --- a/makima/src/daemon/ws/protocol.rs +++ b/makima/src/daemon/ws/protocol.rs @@ -287,6 +287,19 @@ pub enum DaemonMessage { success: bool, message: String, }, + + /// Response to InheritGitConfig command. + GitConfigInherited { + success: bool, + /// Git user.email that was inherited + #[serde(rename = "userEmail")] + user_email: Option<String>, + /// Git user.name that was inherited + #[serde(rename = "userName")] + user_name: Option<String>, + /// Error message if failed + error: Option<String>, + }, } /// Information about a branch (used in BranchList message). @@ -589,6 +602,14 @@ pub enum DaemonCommand { delete_branch: bool, }, + /// Inherit git config (user.email, user.name) from a directory. + /// This config will be applied to all future worktrees. + InheritGitConfig { + /// Directory to read git config from (defaults to daemon's working directory). + #[serde(rename = "sourceDir")] + source_dir: Option<String>, + }, + /// Error response. Error { code: String, |
