Get the encoding for this graph_op, if any.
(&self)
| 574 | |
| 575 | /// Get the encoding for this graph_op, if any. |
| 576 | pub fn encoding(&self) -> Option<Encoding> { |
| 577 | match self { |
| 578 | GraphOp::FileAdd { encoding, .. } |
| 579 | | GraphOp::FileDel { encoding, .. } |
| 580 | | GraphOp::FileUndel { encoding, .. } |
| 581 | | GraphOp::Edit { encoding, .. } |
| 582 | | GraphOp::Replacement { encoding, .. } |
| 583 | | GraphOp::ResurrectZombies { encoding, .. } => *encoding, |
| 584 | |
| 585 | _ => None, |
| 586 | } |
| 587 | } |
| 588 | |
| 589 | /// Check if this graph_op represents a file-level operation. |
| 590 | pub fn is_file_operation(&self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected