mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-23 01:22:12 +03:00
move reader writer to root
This commit is contained in:
parent
a1a3aaeb41
commit
d6f5b3120c
@ -2,9 +2,9 @@ use std::{collections::HashMap, path};
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
use crate::app::{
|
||||
use crate::{
|
||||
app::sessions,
|
||||
reader::{self, Reader},
|
||||
sessions,
|
||||
};
|
||||
|
||||
use super::Delta;
|
||||
|
@ -13,10 +13,9 @@ use uuid::Uuid;
|
||||
|
||||
use crate::{fs, projects, users};
|
||||
|
||||
use crate::app::{
|
||||
project_repository,
|
||||
use crate::{
|
||||
app::{project_repository, sessions},
|
||||
reader::{self, Reader},
|
||||
sessions,
|
||||
};
|
||||
|
||||
pub struct Repository {
|
||||
|
@ -4,12 +4,10 @@ pub mod gb_repository;
|
||||
pub mod project_repository;
|
||||
pub mod projects;
|
||||
pub mod pty;
|
||||
pub mod reader;
|
||||
pub mod search;
|
||||
pub mod sessions;
|
||||
pub mod users;
|
||||
pub mod watcher;
|
||||
mod writer;
|
||||
|
||||
pub use app::{AddProjectError, App};
|
||||
pub use project_repository::FileStatus;
|
||||
|
@ -4,10 +4,7 @@ use anyhow::{Context, Result};
|
||||
use serde::Serialize;
|
||||
use walkdir::WalkDir;
|
||||
|
||||
use crate::{
|
||||
app::{project_repository::activity, reader},
|
||||
projects,
|
||||
};
|
||||
use crate::{app::project_repository::activity, projects, reader};
|
||||
|
||||
pub struct Repository<'repository> {
|
||||
pub(crate) git_repository: git2::Repository,
|
||||
|
@ -1,6 +1,6 @@
|
||||
use anyhow::{Context, Result};
|
||||
|
||||
use crate::app::reader::{CommitReader, Reader};
|
||||
use crate::reader::{CommitReader, Reader};
|
||||
|
||||
use super::{cache, Session, SessionError};
|
||||
|
||||
|
@ -2,8 +2,8 @@ use std::collections::HashMap;
|
||||
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
|
||||
use crate::app::{
|
||||
gb_repository,
|
||||
use crate::{
|
||||
app::gb_repository,
|
||||
reader::{self, CommitReader, Reader},
|
||||
};
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
use crate::app::reader;
|
||||
use anyhow::{Context, Result};
|
||||
use serde::Serialize;
|
||||
use thiserror::Error;
|
||||
|
||||
use crate::reader;
|
||||
|
||||
#[derive(Debug, Clone, Serialize, PartialEq)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct Meta {
|
||||
|
@ -2,8 +2,8 @@ use std::time;
|
||||
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
|
||||
use crate::app::{
|
||||
deltas, gb_repository, pty,
|
||||
use crate::{
|
||||
app::{deltas, gb_repository, pty},
|
||||
reader::{self, Reader},
|
||||
writer::{self, Writer},
|
||||
};
|
||||
|
@ -3,11 +3,9 @@ use std::vec;
|
||||
use anyhow::{Context, Result};
|
||||
|
||||
use crate::{
|
||||
app::{
|
||||
deltas, gb_repository, project_repository,
|
||||
reader::{self, Reader},
|
||||
},
|
||||
app::{deltas, gb_repository, project_repository},
|
||||
projects,
|
||||
reader::{self, Reader},
|
||||
};
|
||||
|
||||
use super::events;
|
||||
|
@ -4,6 +4,8 @@ extern crate scopeguard;
|
||||
extern crate lazy_static;
|
||||
|
||||
mod app;
|
||||
mod reader;
|
||||
mod writer;
|
||||
mod zip;
|
||||
mod events;
|
||||
mod fs;
|
||||
|
Loading…
Reference in New Issue
Block a user