blob: d6de261013bee30d4766755709962a6035ecf281 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use crate::delta::{Source, State, StateMachine};
impl<'a> StateMachine<'a> {
#[inline]
fn test_file_meta_misc_cases(&self) -> bool {
self.source == Source::DiffUnified && self.line.starts_with("Only in ")
|| self.line.starts_with("Binary files ")
}
pub fn handle_file_meta_misc_line(&mut self) -> std::io::Result<bool> {
if !self.test_file_meta_misc_cases() {
return Ok(false);
}
self.handle_additional_cases(State::FileMeta)
}
}
|