mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-29 12:33:49 +03:00
Remove now unused target_commit function
This commit is contained in:
parent
1e518a3d78
commit
152b14c226
@ -32,8 +32,6 @@ pub trait RepositoryExt {
|
||||
fn in_memory_repo(&self) -> Result<git2::Repository>;
|
||||
/// Fetches the integration commit from the gitbutler/integration branch
|
||||
fn integration_commit(&self) -> Result<git2::Commit<'_>>;
|
||||
/// Fetches the target commit by finding the parent of the integration commit
|
||||
fn target_commit(&self) -> Result<git2::Commit<'_>>;
|
||||
/// Takes a CommitBuffer and returns it after being signed by by your git signing configuration
|
||||
fn sign_buffer(&self, buffer: &CommitBuffer) -> Result<BString>;
|
||||
|
||||
@ -154,10 +152,6 @@ impl RepositoryExt for git2::Repository {
|
||||
Ok(integration_ref.peel_to_commit()?)
|
||||
}
|
||||
|
||||
fn target_commit(&self) -> Result<git2::Commit<'_>> {
|
||||
Ok(self.integration_commit()?.parent(0)?)
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn commit_with_signature(
|
||||
&self,
|
||||
|
Loading…
Reference in New Issue
Block a user