Skip to content

Commit 80ede05

Browse files
committed
Get context_size from options
1 parent 1ec1de1 commit 80ede05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

asyncgit/src/sync/diff.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,13 +422,13 @@ pub fn get_diff(
422422
),
423423
);
424424

425+
let context_size = options.map_or(3, |opts| opts.context);
426+
425427
let unified_diff = UnifiedDiff::new(
426428
&input,
427429
FileDiff::default(),
428-
// TODO:
429-
// Get values from `options` where necessary and possible.
430430
NewlineSeparator::AfterHeaderAndLine("\n"),
431-
ContextSize::symmetrical(3),
431+
ContextSize::symmetrical(context_size),
432432
);
433433

434434
let file_diff =

0 commit comments

Comments
 (0)