Remove now unused target_commit function

This commit is contained in:
Mattias Granlund 2024-07-30 15:16:24 +01:00
parent 1e518a3d78
commit 152b14c226

View File

@ -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,