Git push/pull/fetch (#25445)

Release Notes:

- N/A

---------

Co-authored-by: Michael Sloan <mgsloan@gmail.com>
This commit is contained in:
Mikayla Maki
2025-02-24 18:29:52 +00:00
committed by GitHub
co-authored by Michael Sloan
parent b1b6401ce7
commit ff6844300e
17 changed files with 1242 additions and 180 deletions
+6 -1
View File
@@ -12979,7 +12979,12 @@ impl Editor {
.update(cx, |buffer_store, cx| buffer_store.save_buffer(buffer, cx))
.detach_and_log_err(cx);
let _ = repo.read(cx).set_index_text(&path, new_index_text);
cx.background_spawn(
repo.read(cx)
.set_index_text(&path, new_index_text)
.log_err(),
)
.detach();
}
pub fn expand_selected_diff_hunks(&mut self, cx: &mut Context<Self>) {
@@ -298,6 +298,7 @@ impl EditorTestContext {
self.cx.run_until_parked();
}
#[track_caller]
pub fn assert_index_text(&mut self, expected: Option<&str>) {
let fs = self.update_editor(|editor, _, cx| {
editor.project.as_ref().unwrap().read(cx).fs().as_fake()