rename module snapshots to ops

This commit is contained in:
Kiril Videlov 2024-05-08 00:24:57 +02:00
parent 289aafb496
commit 93d5e61530
12 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
use anyhow::Result;
use gitbutler_core::{projects::Project, snapshots::oplog::Oplog};
use gitbutler_core::{ops::oplog::Oplog, projects::Project};
use clap::{arg, Command};
#[cfg(not(windows))]

View File

@ -25,12 +25,12 @@ pub mod git;
pub mod id;
pub mod keys;
pub mod lock;
pub mod ops;
pub mod path;
pub mod project_repository;
pub mod projects;
pub mod reader;
pub mod sessions;
pub mod snapshots;
pub mod ssh;
pub mod storage;
pub mod time;

View File

@ -1,5 +1,5 @@
use crate::{
snapshots::entry::{OperationType, SnapshotDetails},
ops::entry::{OperationType, SnapshotDetails},
virtual_branches::Branch,
};

View File

@ -1,6 +1,6 @@
use crate::{
error::Error,
snapshots::{
ops::{
entry::{OperationType, SnapshotDetails},
oplog::Oplog,
},

View File

@ -25,7 +25,7 @@ use super::{
branch_to_remote_branch, errors, target, RemoteBranch, VirtualBranchesHandle,
};
use crate::git::diff::{diff_files_into_hunks, trees, FileDiff};
use crate::snapshots::snapshot::Snapshoter;
use crate::ops::snapshot::Snapshoter;
use crate::virtual_branches::branch::HunkHash;
use crate::{
dedup::{dedup, dedup_fmt},

View File

@ -1,8 +1,8 @@
use crate::error::Error;
use anyhow::Context;
use gitbutler_core::{
ops::{entry::Snapshot, oplog::Oplog},
projects::{self, ProjectId},
snapshots::{entry::Snapshot, oplog::Oplog},
};
use tauri::Manager;
use tracing::instrument;

View File

@ -7,10 +7,10 @@ use std::sync::Arc;
use std::{path, time};
use anyhow::{bail, Context, Result};
use gitbutler_core::ops::entry::{OperationType, SnapshotDetails};
use gitbutler_core::ops::oplog::Oplog;
use gitbutler_core::projects::ProjectId;
use gitbutler_core::sessions::SessionId;
use gitbutler_core::snapshots::entry::{OperationType, SnapshotDetails};
use gitbutler_core::snapshots::oplog::Oplog;
use gitbutler_core::virtual_branches::VirtualBranches;
use gitbutler_core::{
assets, deltas, gb_repository, git, project_repository, projects, reader, sessions, users,