diff options
Diffstat (limited to 'makima/src/daemon/ws')
| -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, |
