@@ -6,13 +6,14 @@ use super::{
6
6
use crate :: {
7
7
accessors,
8
8
keys:: { key_match, SharedKeyConfig } ,
9
+ options:: SharedOptions ,
9
10
queue:: { InternalEvent , Queue , StackablePopupOpen } ,
10
11
strings,
11
12
ui:: style:: SharedTheme ,
12
13
} ;
13
14
use anyhow:: Result ;
14
15
use asyncgit:: {
15
- sync:: { diff :: DiffOptions , CommitId , CommitTags , RepoPathRef } ,
16
+ sync:: { CommitId , CommitTags , RepoPathRef } ,
16
17
AsyncDiff , AsyncGitNotification , DiffParams , DiffType ,
17
18
} ;
18
19
use crossbeam_channel:: Sender ;
@@ -61,6 +62,7 @@ pub struct InspectCommitComponent {
61
62
git_diff : AsyncDiff ,
62
63
visible : bool ,
63
64
key_config : SharedKeyConfig ,
65
+ options : SharedOptions ,
64
66
}
65
67
66
68
impl DrawableComponent for InspectCommitComponent {
@@ -208,6 +210,7 @@ impl InspectCommitComponent {
208
210
sender : & Sender < AsyncGitNotification > ,
209
211
theme : SharedTheme ,
210
212
key_config : SharedKeyConfig ,
213
+ options : SharedOptions ,
211
214
) -> Self {
212
215
Self {
213
216
queue : queue. clone ( ) ,
@@ -229,6 +232,7 @@ impl InspectCommitComponent {
229
232
git_diff : AsyncDiff :: new ( repo. borrow ( ) . clone ( ) , sender) ,
230
233
visible : false ,
231
234
key_config,
235
+ options,
232
236
}
233
237
}
234
238
@@ -272,7 +276,7 @@ impl InspectCommitComponent {
272
276
diff_type : DiffType :: Commit (
273
277
request. commit_id ,
274
278
) ,
275
- options : DiffOptions :: default ( ) ,
279
+ options : self . options . borrow ( ) . diff_options ( ) ,
276
280
} ;
277
281
278
282
if let Some ( ( params, last) ) =
0 commit comments