MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / to_hunk_options

Method to_hunk_options

atomic-core/src/record/workflow/record/options.rs:303–309  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

301 /// Convert to graph_op build options.
302 #[must_use]
303 pub fn to_hunk_options(&self) -> HunkBuildOptions {
304 let mut opts = HunkBuildOptions::new().context_lines(self.context_lines);
305 if let Some(enc) = self.default_encoding {
306 opts = opts.encoding(enc);
307 }
308 opts
309 }
310}
311
312impl Default for RecordingOptions {

Calls 2

context_linesMethod · 0.45
encodingMethod · 0.45

Tested by 1