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 10:29:52 -08:00 committed by GitHub
parent b1b6401ce7
commit ff6844300e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 1242 additions and 180 deletions

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>) {

View file

@ -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()