mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-08-17 00:00:31 +03:00
move GITBUTLER_INTEGRATION_REFERENCE constant outside of integration rs
This allows integration implementation to be extracted out of core
This commit is contained in:
parent
9eaab28a48
commit
0865521f90
@ -5,11 +5,11 @@ use git2::Index;
|
||||
use serde::Serialize;
|
||||
|
||||
use gitbutler_core::virtual_branches::integration::{
|
||||
get_workspace_head, update_gitbutler_integration, GITBUTLER_INTEGRATION_REFERENCE,
|
||||
get_workspace_head, update_gitbutler_integration,
|
||||
};
|
||||
use gitbutler_core::virtual_branches::{
|
||||
branch, convert_to_real_branch, target, BranchId, RemoteCommit, VirtualBranchHunk,
|
||||
VirtualBranchesHandle,
|
||||
VirtualBranchesHandle, GITBUTLER_INTEGRATION_REFERENCE,
|
||||
};
|
||||
use gitbutler_core::{error::Marker, git::RepositoryExt, rebase::cherry_rebase};
|
||||
use gitbutler_core::{
|
||||
|
@ -2,22 +2,16 @@ use std::{path::PathBuf, vec};
|
||||
|
||||
use anyhow::{anyhow, bail, Context, Result};
|
||||
use bstr::ByteSlice;
|
||||
use lazy_static::lazy_static;
|
||||
|
||||
use super::VirtualBranchesHandle;
|
||||
use super::{VirtualBranchesHandle, GITBUTLER_INTEGRATION_REFERENCE};
|
||||
use crate::error::Marker;
|
||||
use crate::git::RepositoryExt;
|
||||
use crate::{
|
||||
git::{self, CommitExt},
|
||||
git::CommitExt,
|
||||
project_repository::{self, conflicts, LogUntil},
|
||||
virtual_branches::branch::BranchCreateRequest,
|
||||
};
|
||||
|
||||
lazy_static! {
|
||||
pub static ref GITBUTLER_INTEGRATION_REFERENCE: git::LocalRefname =
|
||||
git::LocalRefname::new("gitbutler/integration", None);
|
||||
}
|
||||
|
||||
const WORKSPACE_HEAD: &str = "Workspace Head";
|
||||
pub const GITBUTLER_INTEGRATION_COMMIT_AUTHOR_NAME: &str = "GitButler";
|
||||
pub const GITBUTLER_INTEGRATION_COMMIT_AUTHOR_EMAIL: &str = "gitbutler@gitbutler.com";
|
||||
|
@ -6,7 +6,6 @@ mod files;
|
||||
pub use files::*;
|
||||
|
||||
pub mod integration;
|
||||
pub use integration::GITBUTLER_INTEGRATION_REFERENCE;
|
||||
|
||||
mod r#virtual;
|
||||
pub use r#virtual::*;
|
||||
@ -20,3 +19,9 @@ pub use state::VirtualBranchesHandle;
|
||||
|
||||
mod author;
|
||||
pub use author::Author;
|
||||
|
||||
use lazy_static::lazy_static;
|
||||
lazy_static! {
|
||||
pub static ref GITBUTLER_INTEGRATION_REFERENCE: crate::git::LocalRefname =
|
||||
crate::git::LocalRefname::new("gitbutler/integration", None);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user