From 908973b5c08a8b7b624880843c512e8bddf37896 Mon Sep 17 00:00:00 2001 From: soryu Date: Thu, 15 Jan 2026 18:25:10 +0000 Subject: Implement git config inherit system --- makima/src/daemon/ws/protocol.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'makima/src/daemon/ws/protocol.rs') 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, + /// Git user.name that was inherited + #[serde(rename = "userName")] + user_name: Option, + /// Error message if failed + error: Option, + }, } /// 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, + }, + /// Error response. Error { code: String, -- cgit v1.2.3