…which also saves parsing time.
Showing the changes to git-object/src/commit/mod.rs (1 of 4 files). Show all
Unified · Split
| @@ -1,5 +1,3 @@ | ||
| 1 | −use std::borrow::Cow; | |
| 2 | − | |
| 3 | 1 | use bstr::{BStr, ByteSlice}; |
| 4 | 2 | |
| 5 | 3 | use crate::{Commit, CommitRef, TagRef}; |
| @@ -54,11 +52,6 @@ impl<'a> CommitRef<'a> { · 48 unmodified lines | ||
| 54 | 52 | pub fn message(&self) -> MessageRef<'a> { |
| 55 | 53 | MessageRef::from_bytes(self.message) |
| 56 | 54 | } |
| 57 | − | |
| 58 | − /// Return exactly the same message as [`MessageRef::summary()`]. | |
| 59 | − pub fn summary(&self) -> Cow<'a, BStr> { | |
| 60 | − message::summary(self.message) | |
| 61 | − } | |
| 62 | 55 | } |
| 63 | 56 | |
| 64 | 57 | impl Commit { |