We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75dd3cd commit 3e97552Copy full SHA for 3e97552
asyncgit/src/sync/diff.rs
@@ -422,13 +422,13 @@ pub fn get_diff(
422
),
423
);
424
425
+ let context_size = options.map_or(3, |opts| opts.context);
426
+
427
let unified_diff = UnifiedDiff::new(
428
&input,
429
FileDiff::default(),
- // TODO:
- // Get values from `options` where necessary and possible.
430
NewlineSeparator::AfterHeaderAndLine("\n"),
431
- ContextSize::symmetrical(3),
+ ContextSize::symmetrical(context_size),
432
433
434
let file_diff =
0 commit comments