pub struct BranchManager { /* private fields */ }
Expand description
High-level branch management operations
Implementations§
Source§impl BranchManager
impl BranchManager
Sourcepub fn new(repository: GitRepository) -> Self
pub fn new(repository: GitRepository) -> Self
Create a new branch manager
Sourcepub fn create_branch(
&self,
request: CreateBranchRequest,
) -> Result<BranchCreationResult>
pub fn create_branch( &self, request: CreateBranchRequest, ) -> Result<BranchCreationResult>
Create a new branch with validation and safety checks
Sourcepub fn delete_branches(
&self,
request: DeleteBranchesRequest,
) -> Result<BranchDeletionResult>
pub fn delete_branches( &self, request: DeleteBranchesRequest, ) -> Result<BranchDeletionResult>
Delete branches with safety checks
Sourcepub fn get_recent_branches(
&self,
request: RecentBranchesRequest,
) -> Result<RecentBranchesResult>
pub fn get_recent_branches( &self, request: RecentBranchesRequest, ) -> Result<RecentBranchesResult>
Get recent branches with filtering
Sourcepub fn switch_branch(
&self,
request: SwitchBranchRequest,
) -> Result<BranchSwitchResult>
pub fn switch_branch( &self, request: SwitchBranchRequest, ) -> Result<BranchSwitchResult>
Switch to a branch with validation
Sourcepub fn rename_branch(
&self,
request: RenameBranchRequest,
) -> Result<BranchRenameResult>
pub fn rename_branch( &self, request: RenameBranchRequest, ) -> Result<BranchRenameResult>
Rename current branch
Sourcepub fn clean_merged_branches(
&self,
request: CleanBranchesRequest,
) -> Result<CleanBranchesResult>
pub fn clean_merged_branches( &self, request: CleanBranchesRequest, ) -> Result<CleanBranchesResult>
Clean merged branches
Auto Trait Implementations§
impl Freeze for BranchManager
impl RefUnwindSafe for BranchManager
impl Send for BranchManager
impl Sync for BranchManager
impl Unpin for BranchManager
impl UnwindSafe for BranchManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more