Send worktree info only when sharing worktree

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2021-12-20 11:36:59 -08:00
parent 697e641e8e
commit 614ee4eac7
10 changed files with 200 additions and 208 deletions

View file

@ -96,7 +96,7 @@ message LeaveProject {
message RegisterWorktree {
uint64 project_id = 1;
Worktree worktree = 2;
string root_name = 2;
repeated string authorized_logins = 3;
}
@ -113,8 +113,9 @@ message ShareWorktree {
message UpdateWorktree {
uint64 project_id = 1;
uint64 worktree_id = 2;
repeated Entry updated_entries = 3;
repeated uint64 removed_entries = 4;
string root_name = 3;
repeated Entry updated_entries = 4;
repeated uint64 removed_entries = 5;
}
message AddProjectCollaborator {