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

Method to_hunk_options

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

Source from the content-addressed store, hash-verified

252 /// Convert to graph_op build options.
253 #[must_use]
254 pub fn to_hunk_options(&self) -> HunkBuildOptions {
255 let mut opts = HunkBuildOptions::new().context_lines(self.context_lines);
256 if let Some(enc) = self.default_encoding {
257 opts = opts.encoding(enc);
258 }
259 opts
260 }
261}
262
263impl Default for RecordingOptions {

Callers 2

record_modified_fileFunction · 0.80

Calls 2

context_linesMethod · 0.45
encodingMethod · 0.45

Tested by 1