fs: Move Repository trait into git crate (#10768)

/cc @mrnugget 
Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz authored and GitHub committed 2024-04-19 11:57:17 +02:00
1 parent aca30d58ec
commit 49ce9750b4
16 files changed
+38 -35

No files matched your search

+5 -5
View File
@@ -8,11 +8,8 @@ use anyhow::{anyhow, Context as _, Result};
use client::{proto, Client};
use clock::ReplicaId;
use collections::{HashMap, HashSet, VecDeque};
use fs::Fs;
use fs::{copy_recursive, RemoveOptions};
use fs::{
repository::{GitFileStatus, GitRepository, RepoPath},
Fs,
};
use futures::{
channel::{
mpsc::{self, UnboundedSender},
@@ -23,7 +20,10 @@ use futures::{
FutureExt as _, Stream, StreamExt,
};
use fuzzy::CharBag;
use git::{DOT_GIT, GITIGNORE};
use git::{
repository::{GitFileStatus, GitRepository, RepoPath},
DOT_GIT, GITIGNORE,
};
use gpui::{
AppContext, AsyncAppContext, BackgroundExecutor, Context, EventEmitter, Model, ModelContext,
Task,
+2 -2
View File
@@ -5,8 +5,8 @@ use crate::{
use anyhow::Result;
use client::Client;
use clock::FakeSystemClock;
use fs::{repository::GitFileStatus, FakeFs, Fs, RealFs, RemoveOptions};
use git::GITIGNORE;
use fs::{FakeFs, Fs, RealFs, RemoveOptions};
use git::{repository::GitFileStatus, GITIGNORE};
use gpui::{BorrowAppContext, ModelContext, Task, TestAppContext};
use parking_lot::Mutex;
use postage::stream::Stream;