Create a new change. # Arguments `header` - Change metadata (message, authors, timestamp) `hunks` - The modifications in this change `contents` - The content blob referenced by hunks `dependencies` - Changes that must be applied before this one
(
header: ChangeHeader,
hunks: Vec<GraphOp<Option<Hash>>>,
contents: Vec<u8>,
dependencies: Vec<Hash>,
)
| 156 | /// * `contents` - The content blob referenced by hunks |
| 157 | /// * `dependencies` - Changes that must be applied before this one |
| 158 | pub fn new( |
| 159 | header: ChangeHeader, |
| 160 | hunks: Vec<GraphOp<Option<Hash>>>, |
| 161 | contents: Vec<u8>, |
| 162 | dependencies: Vec<Hash>, |
| 163 | ) -> Self { |
| 164 | Self::with_file_ops(header, hunks, Vec::new(), contents, dependencies) |
| 165 | } |
| 166 | |
| 167 | /// Create a new change with semantic layer operations. |
| 168 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected