Creates a new file operation container. Use this when you have both the trunk operation and will add line ops later.
(trunk_id: TrunkId, path: String, trunk_op: Option<TrunkOp>)
| 114 | /// |
| 115 | /// Use this when you have both the trunk operation and will add line ops later. |
| 116 | pub fn new(trunk_id: TrunkId, path: String, trunk_op: Option<TrunkOp>) -> Self { |
| 117 | Self { |
| 118 | trunk_id, |
| 119 | path, |
| 120 | trunk_op, |
| 121 | line_ops: Vec::new(), |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | /// Creates a file creation operation. |
| 126 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected