mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-19 07:32:22 +03:00
Merge pull request #3729 from gitbutlerapp/update-branch-name-with-old-name
rename snapshots module names
This commit is contained in:
commit
52f4cecbb1
@ -1,5 +1,5 @@
|
|||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use gitbutler_core::{projects::Project, snapshots::snapshot::Oplog};
|
use gitbutler_core::{ops::oplog::Oplog, projects::Project};
|
||||||
|
|
||||||
use clap::{arg, Command};
|
use clap::{arg, Command};
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
|
@ -25,12 +25,12 @@ pub mod git;
|
|||||||
pub mod id;
|
pub mod id;
|
||||||
pub mod keys;
|
pub mod keys;
|
||||||
pub mod lock;
|
pub mod lock;
|
||||||
|
pub mod ops;
|
||||||
pub mod path;
|
pub mod path;
|
||||||
pub mod project_repository;
|
pub mod project_repository;
|
||||||
pub mod projects;
|
pub mod projects;
|
||||||
pub mod reader;
|
pub mod reader;
|
||||||
pub mod sessions;
|
pub mod sessions;
|
||||||
pub mod snapshots;
|
|
||||||
pub mod ssh;
|
pub mod ssh;
|
||||||
pub mod storage;
|
pub mod storage;
|
||||||
pub mod time;
|
pub mod time;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
pub mod entry;
|
pub mod entry;
|
||||||
|
pub mod oplog;
|
||||||
mod reflog;
|
mod reflog;
|
||||||
pub mod snapshot;
|
pub mod snapshot;
|
||||||
pub mod snapshoter;
|
|
||||||
mod state;
|
mod state;
|
@ -1,9 +1,9 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
snapshots::entry::{OperationType, SnapshotDetails},
|
ops::entry::{OperationType, SnapshotDetails},
|
||||||
virtual_branches::Branch,
|
virtual_branches::Branch,
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::{entry::Trailer, snapshot::Oplog};
|
use super::{entry::Trailer, oplog::Oplog};
|
||||||
|
|
||||||
pub trait Snapshoter {
|
pub trait Snapshoter {
|
||||||
fn snapshot_deletion(&self, oplog: &dyn Oplog) -> anyhow::Result<()>;
|
fn snapshot_deletion(&self, oplog: &dyn Oplog) -> anyhow::Result<()>;
|
@ -1,8 +1,8 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
error::Error,
|
error::Error,
|
||||||
snapshots::{
|
ops::{
|
||||||
entry::{OperationType, SnapshotDetails},
|
entry::{OperationType, SnapshotDetails},
|
||||||
snapshot::Oplog,
|
oplog::Oplog,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
use std::{collections::HashMap, path::Path, sync::Arc};
|
use std::{collections::HashMap, path::Path, sync::Arc};
|
||||||
|
@ -25,7 +25,7 @@ use super::{
|
|||||||
branch_to_remote_branch, errors, target, RemoteBranch, VirtualBranchesHandle,
|
branch_to_remote_branch, errors, target, RemoteBranch, VirtualBranchesHandle,
|
||||||
};
|
};
|
||||||
use crate::git::diff::{diff_files_into_hunks, trees, FileDiff};
|
use crate::git::diff::{diff_files_into_hunks, trees, FileDiff};
|
||||||
use crate::snapshots::snapshoter::Snapshoter;
|
use crate::ops::snapshot::Snapshoter;
|
||||||
use crate::virtual_branches::branch::HunkHash;
|
use crate::virtual_branches::branch::HunkHash;
|
||||||
use crate::{
|
use crate::{
|
||||||
dedup::{dedup, dedup_fmt},
|
dedup::{dedup, dedup_fmt},
|
||||||
|
@ -27,7 +27,7 @@ pub mod github;
|
|||||||
pub mod keys;
|
pub mod keys;
|
||||||
pub mod projects;
|
pub mod projects;
|
||||||
pub mod sessions;
|
pub mod sessions;
|
||||||
pub mod snapshots;
|
pub mod undo;
|
||||||
pub mod users;
|
pub mod users;
|
||||||
pub mod virtual_branches;
|
pub mod virtual_branches;
|
||||||
pub mod zip;
|
pub mod zip;
|
||||||
|
@ -17,7 +17,7 @@ use std::path::PathBuf;
|
|||||||
|
|
||||||
use gitbutler_core::{assets, database, git, storage};
|
use gitbutler_core::{assets, database, git, storage};
|
||||||
use gitbutler_tauri::{
|
use gitbutler_tauri::{
|
||||||
app, askpass, commands, deltas, github, keys, logs, menu, projects, sessions, snapshots, users,
|
app, askpass, commands, deltas, github, keys, logs, menu, projects, sessions, undo, users,
|
||||||
virtual_branches, watcher, zip,
|
virtual_branches, watcher, zip,
|
||||||
};
|
};
|
||||||
use tauri::{generate_context, Manager};
|
use tauri::{generate_context, Manager};
|
||||||
@ -232,8 +232,8 @@ fn main() {
|
|||||||
virtual_branches::commands::squash_branch_commit,
|
virtual_branches::commands::squash_branch_commit,
|
||||||
virtual_branches::commands::fetch_from_target,
|
virtual_branches::commands::fetch_from_target,
|
||||||
virtual_branches::commands::move_commit,
|
virtual_branches::commands::move_commit,
|
||||||
snapshots::list_snapshots,
|
undo::list_snapshots,
|
||||||
snapshots::restore_snapshot,
|
undo::restore_snapshot,
|
||||||
menu::menu_item_set_enabled,
|
menu::menu_item_set_enabled,
|
||||||
keys::commands::get_public_key,
|
keys::commands::get_public_key,
|
||||||
github::commands::init_device_oauth,
|
github::commands::init_device_oauth,
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
use crate::error::Error;
|
use crate::error::Error;
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
use gitbutler_core::{
|
use gitbutler_core::{
|
||||||
|
ops::{entry::Snapshot, oplog::Oplog},
|
||||||
projects::{self, ProjectId},
|
projects::{self, ProjectId},
|
||||||
snapshots::{entry::Snapshot, snapshot::Oplog},
|
|
||||||
};
|
};
|
||||||
use tauri::Manager;
|
use tauri::Manager;
|
||||||
use tracing::instrument;
|
use tracing::instrument;
|
@ -7,10 +7,10 @@ use std::sync::Arc;
|
|||||||
use std::{path, time};
|
use std::{path, time};
|
||||||
|
|
||||||
use anyhow::{bail, Context, Result};
|
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::projects::ProjectId;
|
||||||
use gitbutler_core::sessions::SessionId;
|
use gitbutler_core::sessions::SessionId;
|
||||||
use gitbutler_core::snapshots::entry::{OperationType, SnapshotDetails};
|
|
||||||
use gitbutler_core::snapshots::snapshot::Oplog;
|
|
||||||
use gitbutler_core::virtual_branches::VirtualBranches;
|
use gitbutler_core::virtual_branches::VirtualBranches;
|
||||||
use gitbutler_core::{
|
use gitbutler_core::{
|
||||||
assets, deltas, gb_repository, git, project_repository, projects, reader, sessions, users,
|
assets, deltas, gb_repository, git, project_repository, projects, reader, sessions, users,
|
||||||
|
Loading…
Reference in New Issue
Block a user