Showing the changes to git-object/src/commit (2 of 8 files). Show all
Unified · Split
| @@ -10,10 +10,7 @@ use nom::{ · 9 unmodified lines | |||
| 10 | }; | 10 | }; |
| 11 | use smallvec::SmallVec; | 11 | use smallvec::SmallVec; |
| 12 | 12 | ||
| 13 | use crate::{ | 13 | use crate::{parse, parse::NL, BStr, ByteSlice, CommitRef}; |
| 14 | immutable::{parse, parse::NL}, | ||
| 15 | BStr, ByteSlice, CommitRef, | ||
| 16 | }; | ||
| 17 | 14 | ||
| 18 | pub fn message<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>(i: &'a [u8]) -> IResult<&'a [u8], &'a BStr, E> { | 15 | pub fn message<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>(i: &'a [u8]) -> IResult<&'a [u8], &'a BStr, E> { |
| 19 | if i.is_empty() { | 16 | if i.is_empty() { |
| @@ -9,12 +9,7 @@ use nom::{ · 8 unmodified lines | |||
| 9 | error::context, | 9 | error::context, |
| 10 | }; | 10 | }; |
| 11 | 11 | ||
| 12 | use crate::{ | 12 | use crate::{bstr::ByteSlice, commit::decode, immutable::object, parse, parse::NL, CommitRefIter}; |
| 13 | bstr::ByteSlice, | ||
| 14 | commit::decode, | ||
| 15 | immutable::{object, parse, parse::NL}, | ||
| 16 | CommitRefIter, | ||
| 17 | }; | ||
| 18 | 13 | ||
| 19 | #[derive(Copy, Clone)] | 14 | #[derive(Copy, Clone)] |
| 20 | pub(crate) enum SignatureKind { | 15 | pub(crate) enum SignatureKind { |