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

Method to_hunk_options

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

Source from the content-addressed store, hash-verified

292 /// Convert to graph_op build options.
293 #[must_use]
294 pub fn to_hunk_options(&self) -> HunkBuildOptions {
295 let mut opts = HunkBuildOptions::new().context_lines(self.context_lines);
296 if let Some(enc) = self.default_encoding {
297 opts = opts.encoding(enc);
298 }
299 opts
300 }
301}
302
303impl Default for RecordingOptions {

Callers 2

record_modified_fileFunction · 0.80

Calls 2

context_linesMethod · 0.45
encodingMethod · 0.45

Tested by 1