Implement collaborative git manipulations (#23869)
Now commit, stage and unstage can be done both via remote ssh and via collab (by guests with write access). https://github.com/user-attachments/assets/a0f5e4e8-01a3-402b-a1f7-f3fc1236cffd Release Notes: - N/A
This commit is contained in:
parent
e721dac367
commit
41de83fe1f
7 changed files with 482 additions and 30 deletions
|
@ -308,6 +308,10 @@ message Envelope {
|
|||
GetStagedTextResponse get_staged_text_response = 289;
|
||||
|
||||
RegisterBufferWithLanguageServers register_buffer_with_language_servers = 290;
|
||||
|
||||
Stage stage = 293;
|
||||
Unstage unstage = 294;
|
||||
Commit commit = 295; // current max
|
||||
}
|
||||
|
||||
reserved 87 to 88;
|
||||
|
@ -2633,3 +2637,24 @@ message RegisterBufferWithLanguageServers{
|
|||
uint64 project_id = 1;
|
||||
uint64 buffer_id = 2;
|
||||
}
|
||||
|
||||
message Stage {
|
||||
uint64 project_id = 1;
|
||||
uint64 worktree_id = 2;
|
||||
uint64 work_directory_id = 3;
|
||||
repeated string paths = 4;
|
||||
}
|
||||
|
||||
message Unstage {
|
||||
uint64 project_id = 1;
|
||||
uint64 worktree_id = 2;
|
||||
uint64 work_directory_id = 3;
|
||||
repeated string paths = 4;
|
||||
}
|
||||
|
||||
message Commit {
|
||||
uint64 project_id = 1;
|
||||
uint64 worktree_id = 2;
|
||||
uint64 work_directory_id = 3;
|
||||
string message = 4;
|
||||
}
|
||||
|
|
|
@ -156,6 +156,7 @@ messages!(
|
|||
(CancelCall, Foreground),
|
||||
(ChannelMessageSent, Foreground),
|
||||
(ChannelMessageUpdate, Foreground),
|
||||
(Commit, Background),
|
||||
(ComputeEmbeddings, Background),
|
||||
(ComputeEmbeddingsResponse, Background),
|
||||
(CopyProjectEntry, Foreground),
|
||||
|
@ -288,6 +289,7 @@ messages!(
|
|||
(ShareProject, Foreground),
|
||||
(ShareProjectResponse, Foreground),
|
||||
(ShowContacts, Foreground),
|
||||
(Stage, Background),
|
||||
(StartLanguageServer, Foreground),
|
||||
(SubscribeToChannels, Foreground),
|
||||
(SynchronizeBuffers, Foreground),
|
||||
|
@ -297,6 +299,7 @@ messages!(
|
|||
(Test, Foreground),
|
||||
(Unfollow, Foreground),
|
||||
(UnshareProject, Foreground),
|
||||
(Unstage, Background),
|
||||
(UpdateBuffer, Foreground),
|
||||
(UpdateBufferFile, Foreground),
|
||||
(UpdateChannelBuffer, Foreground),
|
||||
|
@ -387,6 +390,7 @@ request_messages!(
|
|||
),
|
||||
(Call, Ack),
|
||||
(CancelCall, Ack),
|
||||
(Commit, Ack),
|
||||
(CopyProjectEntry, ProjectEntryResponse),
|
||||
(ComputeEmbeddings, ComputeEmbeddingsResponse),
|
||||
(CreateChannel, CreateChannelResponse),
|
||||
|
@ -463,6 +467,7 @@ request_messages!(
|
|||
(RespondToChannelInvite, Ack),
|
||||
(RespondToContactRequest, Ack),
|
||||
(SaveBuffer, BufferSaved),
|
||||
(Stage, Ack),
|
||||
(FindSearchCandidates, FindSearchCandidatesResponse),
|
||||
(SendChannelMessage, SendChannelMessageResponse),
|
||||
(SetChannelMemberRole, Ack),
|
||||
|
@ -471,6 +476,7 @@ request_messages!(
|
|||
(SynchronizeBuffers, SynchronizeBuffersResponse),
|
||||
(TaskContextForLocation, TaskContext),
|
||||
(Test, Test),
|
||||
(Unstage, Ack),
|
||||
(UpdateBuffer, Ack),
|
||||
(UpdateParticipantLocation, Ack),
|
||||
(UpdateProject, Ack),
|
||||
|
@ -516,6 +522,7 @@ entity_messages!(
|
|||
BufferReloaded,
|
||||
BufferSaved,
|
||||
CloseBuffer,
|
||||
Commit,
|
||||
CopyProjectEntry,
|
||||
CreateBufferForPeer,
|
||||
CreateProjectEntry,
|
||||
|
@ -556,10 +563,12 @@ entity_messages!(
|
|||
ResolveCompletionDocumentation,
|
||||
ResolveInlayHint,
|
||||
SaveBuffer,
|
||||
Stage,
|
||||
StartLanguageServer,
|
||||
SynchronizeBuffers,
|
||||
TaskContextForLocation,
|
||||
UnshareProject,
|
||||
Unstage,
|
||||
UpdateBuffer,
|
||||
UpdateBufferFile,
|
||||
UpdateDiagnosticSummary,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue