Skip to content

Commit b93bee6

Browse files
codexByron
andcommitted
commit: drop dead git2 message adapter
Co-authored-by: Sebastian Thiel <sebastian.thiel@icloud.com>
1 parent f16a052 commit b93bee6

3 files changed

Lines changed: 1 addition & 9 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/gitbutler-commit/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ doctest = false
1414
testing = []
1515

1616
[dependencies]
17-
git2.workspace = true
1817
gix.workspace = true
1918
bstr.workspace = true
2019
but-core.workspace = true

crates/gitbutler-commit/src/commit_ext.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use bstr::{BStr, ByteSlice};
1+
use bstr::BStr;
22
use but_core::{ChangeId, commit::Headers};
33

44
/// Extension trait for `gix::Commit`.
@@ -43,9 +43,3 @@ impl CommitMessageBstr for gix::Commit<'_> {
4343
.expect("valid commit that can be parsed: TODO - allow it to return errors?")
4444
}
4545
}
46-
47-
impl CommitMessageBstr for git2::Commit<'_> {
48-
fn message_bstr(&self) -> &BStr {
49-
self.message_bytes().as_bstr()
50-
}
51-
}

0 commit comments

Comments
 (0)