gitwig 2.4.8

a rust based tui, an alternative to sourcetree and gitui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
use crate::app::{App, Mode};
use crate::keybindings::Action;
use crate::repo;
use crossterm::event::KeyEvent;

pub mod branches;
pub mod file_history;
pub mod files;
pub mod graph;
pub mod home;
pub mod logs;
pub mod remotes;
pub mod stashes;
pub mod tags;
pub mod workspace;

pub use branches::BranchesTab;
pub use file_history::FileHistoryTab;
pub use files::FilesTab;
pub use graph::GraphTab;
pub use home::HomeTab;
pub use logs::LogsTab;
pub use remotes::RemotesTab;
pub use stashes::StashesTab;
pub use tags::TagsTab;
pub use workspace::WorkspaceTab;

pub fn route_detail_event(app: &mut App, key: KeyEvent) -> bool {
    if app.is_bound(Action::Overview, key) {
        app.mode = Mode::Overview;
        app.trigger_overview_load_if_needed();
        return true;
    }

    if app.is_bound(Action::CloseDetail, key) {
        if app.inspect_full_diff {
            app.inspect_full_diff = false;
            return true;
        } else if app.commit_list.search_query.is_some() {
            app.cancel_commit_search();
            return true;
        }
        if app.advanced_tabs {
            app.advanced_tabs = false;
            app.detail_tab = 0;
            app.set_default_focus_for_tab();
            if app.get_current_resync_on_tab_change() {
                app.resync_detail();
            }
            return true;
        }
        app.close_detail();
        return true;
    }

    if app.is_bound(Action::DetailHelp, key) {
        app.open_detail_help();
        return true;
    }

    if app.is_bound(Action::CycleFocusForward, key) {
        app.cycle_detail_focus(false);
        return true;
    }

    if app.is_bound(Action::CycleFocusBackward, key) {
        app.cycle_detail_focus(true);
        return true;
    }

    if app.is_bound(Action::RefreshDetail, key) {
        app.resync_detail();
        app.status_message = Some("Refreshed".to_string());
        return true;
    }

    if app.is_bound(Action::CycleTabForward, key) {
        app.inspect_full_diff = false;
        if app.advanced_tabs {
            app.detail_tab = 7 + (app.detail_tab - 7 + 1) % 5;
        } else {
            app.detail_tab = (app.detail_tab + 1) % 7;
        }
        app.commit_list.selection = 0;
        app.set_default_focus_for_tab();
        if app.get_current_resync_on_tab_change() {
            app.resync_detail();
        }
        return true;
    }

    if app.is_bound(Action::CycleTabBackward, key) {
        app.inspect_full_diff = false;
        if app.advanced_tabs {
            app.detail_tab = 7 + if app.detail_tab == 7 { 4 } else { app.detail_tab - 7 - 1 };
        } else {
            app.detail_tab = if app.detail_tab == 0 { 6 } else { app.detail_tab - 1 };
        }
        app.commit_list.selection = 0;
        app.set_default_focus_for_tab();
        if app.get_current_resync_on_tab_change() {
            app.resync_detail();
        }
        return true;
    }

    if app.is_bound(Action::ToggleAdvancedTabs, key) {
        app.inspect_full_diff = false;
        if app.advanced_tabs {
            app.advanced_tabs = false;
            app.detail_tab = 0;
        } else {
            app.advanced_tabs = true;
            app.detail_tab = 7;
        }
        app.commit_list.selection = 0;
        app.set_default_focus_for_tab();
        if app.get_current_resync_on_tab_change() {
            app.resync_detail();
        }
        return true;
    }

    if app.is_bound(Action::GoToTab1, key) {
        app.inspect_full_diff = false;
        app.detail_tab = if app.advanced_tabs { 7 } else { 0 };
        app.commit_list.selection = 0;
        app.set_default_focus_for_tab();
        if app.get_current_resync_on_tab_change() {
            app.resync_detail();
        }
        return true;
    }

    if app.is_bound(Action::GoToTab2, key) {
        app.inspect_full_diff = false;
        app.detail_tab = if app.advanced_tabs { 8 } else { 1 };
        app.commit_list.selection = 0;
        app.set_default_focus_for_tab();
        if app.get_current_resync_on_tab_change() {
            app.resync_detail();
        }
        return true;
    }

    if app.is_bound(Action::GoToTab3, key) {
        app.inspect_full_diff = false;
        app.detail_tab = if app.advanced_tabs { 9 } else { 2 };
        app.commit_list.selection = 0;
        app.set_default_focus_for_tab();
        if app.get_current_resync_on_tab_change() {
            app.resync_detail();
        }
        return true;
    }

    if app.is_bound(Action::GoToTab4, key) {
        app.inspect_full_diff = false;
        app.detail_tab = if app.advanced_tabs { 10 } else { 3 };
        app.commit_list.selection = 0;
        app.set_default_focus_for_tab();
        if app.get_current_resync_on_tab_change() {
            app.resync_detail();
        }
        return true;
    }

    if app.is_bound(Action::GoToTab5, key) {
        app.inspect_full_diff = false;
        app.detail_tab = if app.advanced_tabs { 11 } else { 4 };
        app.commit_list.selection = 0;
        app.set_default_focus_for_tab();
        if app.get_current_resync_on_tab_change() {
            app.resync_detail();
        }
        return true;
    }

    if app.is_bound(Action::GoToTab6, key) {
        if !app.advanced_tabs {
            app.inspect_full_diff = false;
            app.detail_tab = 5;
            app.commit_list.selection = 0;
            app.set_default_focus_for_tab();
            if app.get_current_resync_on_tab_change() {
                app.resync_detail();
            }
            return true;
        }
    }

    if app.is_bound(Action::GoToTab7, key) {
        if !app.advanced_tabs {
            app.inspect_full_diff = false;
            app.detail_tab = 6;
            app.commit_list.selection = 0;
            app.set_default_focus_for_tab();
            if app.get_current_resync_on_tab_change() {
                app.resync_detail();
            }
            return true;
        }
    }

    match app.detail_tab {
        0 => return WorkspaceTab::handle_event(app, key),
        1 => return FilesTab::handle_event(app, key),
        2 => return GraphTab::handle_event(app, key),
        3 => return BranchesTab::handle_event(app, key),
        4 => return TagsTab::handle_event(app, key),
        5 => return RemotesTab::handle_event(app, key),
        6 => return StashesTab::handle_event(app, key),
        7 => return handle_worktree_events(app, key),
        8 => return handle_submodule_events(app, key),
        9 => return handle_reflog_events(app, key),
        10 => return handle_forge_events(app, key),
        11 => return handle_forge_pr_events(app, key),
        _ => {}
    }
    false
}

fn handle_forge_events(app: &mut App, key: KeyEvent) -> bool {
    if app.is_bound(Action::ForgeToggleAssigned, key) {
        app.forge_issues_assigned_only = !app.forge_issues_assigned_only;
        if let Some(repo::ItemDetail::Repo { resolved, info }) = &mut app.current_detail {
            info.forge_issues = repo::TabData::Loading;
            app.forge_issue_selection = 0;
            let path = resolved.clone();
            let assigned_only = app.forge_issues_assigned_only;
            let tx = app.tab_tx.clone();
            std::thread::spawn(move || {
                let res = repo::load_tab_forge_issues(&path, assigned_only);
                let _ = tx.send((
                    path.to_string_lossy().to_string(),
                    10, // tab_idx
                    repo::TabPayload::ForgeIssues(res),
                ));
            });
        }
        return true;
    }

    let issues_count = if let Some(repo::ItemDetail::Repo { info, .. }) = &app.current_detail {
        if let repo::TabData::Loaded(issues) = &info.forge_issues { issues.len() } else { 0 }
    } else {
        0
    };

    if app.is_bound(Action::DetailMoveDown, key) {
        if issues_count > 0 {
            app.forge_issue_selection = (app.forge_issue_selection + 1).min(issues_count - 1);
        }
        return true;
    }
    if app.is_bound(Action::DetailMoveUp, key) {
        app.forge_issue_selection = app.forge_issue_selection.saturating_sub(1);
        return true;
    }
    if app.is_bound(Action::DetailPageDown, key) {
        if issues_count > 0 {
            app.forge_issue_selection =
                (app.forge_issue_selection + app.config.page_size).min(issues_count - 1);
        }
        return true;
    }
    if app.is_bound(Action::DetailPageUp, key) {
        app.forge_issue_selection = app.forge_issue_selection.saturating_sub(app.config.page_size);
        return true;
    }
    if app.is_bound(Action::DetailHome, key) {
        app.forge_issue_selection = 0;
        return true;
    }
    if app.is_bound(Action::DetailEnd, key) {
        if issues_count > 0 {
            app.forge_issue_selection = issues_count - 1;
        }
        return true;
    }
    if app.is_bound(Action::ForgeCheckout, key) {
        if let Some(repo::ItemDetail::Repo { resolved, info }) = &app.current_detail {
            if let repo::TabData::Loaded(issues) = &info.forge_issues {
                if let Some(issue) = issues.get(app.forge_issue_selection) {
                    let num = issue.number;
                    let path = resolved.clone();
                    app.fetching = true;
                    app.status_message =
                        Some(format!("Resolving and switching branch for issue #{}...", num));
                    let tx = app.tx.clone();
                    std::thread::spawn(move || {
                        match repo::resolve_and_checkout_issue_branch(&path, num) {
                            Ok(msg) => {
                                let _ = tx.send(format!("CHECKOUT_SUCCESS:{}", msg));
                            }
                            Err(e) => {
                                let _ = tx
                                    .send(format!("CHECKOUT_ERROR:Failed to switch branch: {}", e));
                            }
                        }
                    });
                }
            }
        }
        return true;
    }
    if app.is_bound(Action::ForgeOpenBrowser, key) {
        if let Some(repo::ItemDetail::Repo { info, .. }) = &app.current_detail {
            if let repo::TabData::Loaded(issues) = &info.forge_issues {
                if let Some(issue) = issues.get(app.forge_issue_selection) {
                    repo::open_browser(&issue.url);
                    app.status_message = Some(format!("Opened issue #{} in browser", issue.number));
                }
            }
        }
        return true;
    }
    false
}

fn handle_forge_pr_events(app: &mut App, key: KeyEvent) -> bool {
    let prs_count = if let Some(repo::ItemDetail::Repo { info, .. }) = &app.current_detail {
        if let repo::TabData::Loaded(prs) = &info.forge_prs { prs.len() } else { 0 }
    } else {
        0
    };

    let old_selection = app.forge_pr_selection;
    let mut handled = false;

    if app.is_bound(Action::DetailMoveDown, key) {
        if prs_count > 0 {
            app.forge_pr_selection = (app.forge_pr_selection + 1).min(prs_count - 1);
        }
        handled = true;
    } else if app.is_bound(Action::DetailMoveUp, key) {
        app.forge_pr_selection = app.forge_pr_selection.saturating_sub(1);
        handled = true;
    } else if app.is_bound(Action::DetailPageDown, key) {
        if prs_count > 0 {
            app.forge_pr_selection =
                (app.forge_pr_selection + app.config.page_size).min(prs_count - 1);
        }
        handled = true;
    } else if app.is_bound(Action::DetailPageUp, key) {
        app.forge_pr_selection = app.forge_pr_selection.saturating_sub(app.config.page_size);
        handled = true;
    } else if app.is_bound(Action::DetailHome, key) {
        app.forge_pr_selection = 0;
        handled = true;
    } else if app.is_bound(Action::DetailEnd, key) {
        if prs_count > 0 {
            app.forge_pr_selection = prs_count - 1;
        }
        handled = true;
    } else if app.is_bound(Action::ForgeCheckout, key) {
        if let Some(repo::ItemDetail::Repo { resolved, info }) = &app.current_detail {
            if let repo::TabData::Loaded(prs) = &info.forge_prs {
                if let Some(pr) = prs.get(app.forge_pr_selection) {
                    let num = pr.number;
                    let path = resolved.clone();
                    app.fetching = true;
                    app.status_message = Some(format!("Checking out branch for PR #{}...", num));
                    let tx = app.tx.clone();
                    std::thread::spawn(move || match repo::checkout_pr_branch(&path, num) {
                        Ok(msg) => {
                            let _ = tx.send(format!("CHECKOUT_SUCCESS:{}", msg));
                        }
                        Err(e) => {
                            let _ =
                                tx.send(format!("CHECKOUT_ERROR:Failed to switch branch: {}", e));
                        }
                    });
                }
            }
        }
        handled = true;
    } else if app.is_bound(Action::ForgeOpenBrowser, key) {
        if let Some(repo::ItemDetail::Repo { info, .. }) = &app.current_detail {
            if let repo::TabData::Loaded(prs) = &info.forge_prs {
                if let Some(pr) = prs.get(app.forge_pr_selection) {
                    repo::open_browser(&pr.url);
                    app.status_message = Some(format!("Opened PR #{} in browser", pr.number));
                }
            }
        }
        handled = true;
    } else if app.is_bound(Action::ForgeAddComment, key) {
        if prs_count > 0 {
            app.mode = Mode::ForgeCommentPathInput;
            app.input_buffer.clear();
        }
        handled = true;
    }

    if app.forge_pr_selection != old_selection {
        app.load_comments_for_selected_pr();
    }

    handled
}

fn handle_reflog_events(app: &mut App, key: KeyEvent) -> bool {
    let entries_count = if let Some(repo::ItemDetail::Repo { info, .. }) = &app.current_detail {
        if let repo::TabData::Loaded(reflog) = &info.reflog { reflog.len() } else { 0 }
    } else {
        0
    };

    if app.is_bound(Action::DetailMoveDown, key) {
        if entries_count > 0 {
            app.reflog_selection = (app.reflog_selection + 1).min(entries_count - 1);
        }
        return true;
    }
    if app.is_bound(Action::DetailMoveUp, key) {
        app.reflog_selection = app.reflog_selection.saturating_sub(1);
        return true;
    }
    if app.is_bound(Action::DetailPageDown, key) {
        if entries_count > 0 {
            app.reflog_selection =
                (app.reflog_selection + app.config.page_size).min(entries_count - 1);
        }
        return true;
    }
    if app.is_bound(Action::DetailPageUp, key) {
        app.reflog_selection = app.reflog_selection.saturating_sub(app.config.page_size);
        return true;
    }
    if app.is_bound(Action::DetailHome, key) {
        app.reflog_selection = 0;
        return true;
    }
    if app.is_bound(Action::DetailEnd, key) {
        if entries_count > 0 {
            app.reflog_selection = entries_count - 1;
        }
        return true;
    }
    if app.is_bound(Action::ReflogCheckout, key) {
        if let Some(repo::ItemDetail::Repo { resolved, info }) = &app.current_detail {
            if let repo::TabData::Loaded(reflog) = &info.reflog {
                if let Some(entry) = reflog.get(app.reflog_selection) {
                    let target_oid = entry.target_oid.clone();
                    let path = resolved.clone();
                    app.fetching = true;
                    app.status_message = Some(format!("Checking out OID {}...", target_oid));
                    let tx = app.tx.clone();
                    std::thread::spawn(move || match repo::checkout_commit(&path, &target_oid) {
                        Ok(_) => {
                            let _ = tx.send(format!(
                                "CHECKOUT_SUCCESS:Checked out commit {}",
                                target_oid
                            ));
                        }
                        Err(e) => {
                            let _ = tx.send(format!("CHECKOUT_ERROR:Failed to checkout: {}", e));
                        }
                    });
                }
            }
        }
        return true;
    }
    false
}

fn handle_submodule_events(app: &mut App, key: KeyEvent) -> bool {
    let subs_count = if let Some(repo::ItemDetail::Repo { info, .. }) = &app.current_detail {
        if let repo::TabData::Loaded(subs) = &info.submodules { subs.len() } else { 0 }
    } else {
        0
    };

    if app.is_bound(Action::DetailMoveDown, key) {
        if subs_count > 0 {
            app.submodule_selection = (app.submodule_selection + 1).min(subs_count - 1);
        }
        return true;
    }
    if app.is_bound(Action::DetailMoveUp, key) {
        app.submodule_selection = app.submodule_selection.saturating_sub(1);
        return true;
    }
    if app.is_bound(Action::DetailPageDown, key) {
        if subs_count > 0 {
            app.submodule_selection =
                (app.submodule_selection + app.config.page_size).min(subs_count - 1);
        }
        return true;
    }
    if app.is_bound(Action::DetailPageUp, key) {
        app.submodule_selection = app.submodule_selection.saturating_sub(app.config.page_size);
        return true;
    }
    if app.is_bound(Action::DetailHome, key) {
        app.submodule_selection = 0;
        return true;
    }
    if app.is_bound(Action::DetailEnd, key) {
        if subs_count > 0 {
            app.submodule_selection = subs_count - 1;
        }
        return true;
    }
    if app.is_bound(Action::SubmodulesAdd, key) {
        app.submodule_add_url.clear();
        app.submodule_add_path.clear();
        app.input_buffer.clear();
        app.mode = Mode::SubmoduleAddUrlInput;
        return true;
    }
    if app.is_bound(Action::SubmodulesDelete, key) {
        if let Some(repo::ItemDetail::Repo { info, .. }) = &app.current_detail {
            if let repo::TabData::Loaded(subs) = &info.submodules {
                if let Some(sub) = subs.get(app.submodule_selection) {
                    app.submodule_delete_target = Some(sub.name.clone());
                    app.mode = Mode::SubmoduleDeleteConfirm;
                }
            }
        }
        return true;
    }
    false
}

fn handle_worktree_events(app: &mut App, key: KeyEvent) -> bool {
    let wts_count = if let Some(repo::ItemDetail::Repo { info, .. }) = &app.current_detail {
        if let repo::TabData::Loaded(wts) = &info.worktrees { wts.len() } else { 0 }
    } else {
        0
    };

    if app.is_bound(Action::DetailMoveDown, key) {
        if wts_count > 0 {
            app.worktree_selection = (app.worktree_selection + 1).min(wts_count - 1);
        }
        return true;
    }
    if app.is_bound(Action::DetailMoveUp, key) {
        app.worktree_selection = app.worktree_selection.saturating_sub(1);
        return true;
    }
    if app.is_bound(Action::DetailPageDown, key) {
        if wts_count > 0 {
            app.worktree_selection =
                (app.worktree_selection + app.config.page_size).min(wts_count - 1);
        }
        return true;
    }
    if app.is_bound(Action::DetailPageUp, key) {
        app.worktree_selection = app.worktree_selection.saturating_sub(app.config.page_size);
        return true;
    }
    if app.is_bound(Action::DetailHome, key) {
        app.worktree_selection = 0;
        return true;
    }
    if app.is_bound(Action::DetailEnd, key) {
        if wts_count > 0 {
            app.worktree_selection = wts_count - 1;
        }
        return true;
    }
    if app.is_bound(Action::WorktreesAdd, key) {
        app.worktree_add_branch.clear();
        app.worktree_add_path.clear();
        app.input_buffer.clear();
        app.mode = Mode::WorktreeAddBranchInput;
        return true;
    }
    if app.is_bound(Action::WorktreesLock, key) {
        if let Some(repo::ItemDetail::Repo { info, .. }) = &app.current_detail {
            if let repo::TabData::Loaded(wts) = &info.worktrees {
                if let Some(wt) = wts.get(app.worktree_selection) {
                    if wt.is_locked {
                        let path_str = match app.config.items.get(app.selected_index) {
                            Some(p) => p,
                            None => return false,
                        };
                        let path = repo::expand_tilde(path_str);
                        match repo::worktree_unlock(&path, &wt.name) {
                            Ok(_) => {
                                app.status_message =
                                    Some("Worktree unlocked successfully".to_string());
                                app.resync_detail();
                            }
                            Err(e) => {
                                app.status_message = Some(format!("Failed to unlock: {}", e));
                            }
                        }
                    } else {
                        app.worktree_lock_reason.clear();
                        app.input_buffer.clear();
                        app.mode = Mode::WorktreeLockReasonInput;
                    }
                }
            }
        }
        return true;
    }
    if app.is_bound(Action::WorktreesDelete, key) {
        app.worktree_remove_delete_folder = false;
        app.worktree_remove_force = false;
        app.input_buffer.clear();
        app.mode = Mode::WorktreeRemoveConfirm;
        return true;
    }
    if app.is_bound(Action::WorktreesPrune, key) {
        let path_str = match app.config.items.get(app.selected_index) {
            Some(p) => p,
            None => return false,
        };
        let path = repo::expand_tilde(path_str);
        match repo::worktree_prune(&path) {
            Ok(_) => {
                app.status_message = Some("Pruned stale worktree metadata".to_string());
                app.resync_detail();
            }
            Err(e) => {
                app.status_message = Some(format!("Prune failed: {}", e));
            }
        }
        return true;
    }
    if app.is_bound(Action::WorktreesOpen, key) {
        if let Some(repo::ItemDetail::Repo { info, .. }) = &app.current_detail {
            if let repo::TabData::Loaded(wts) = &info.worktrees {
                if let Some(wt) = wts.get(app.worktree_selection) {
                    let wt_path = wt.path.clone();
                    if wt_path.exists() {
                        let wt_path_str = wt_path.to_string_lossy().to_string();
                        if !app.config.items.contains(&wt_path_str) {
                            app.config.items.push(wt_path_str.clone());
                            app.persist("Worktree repository added");
                            app.original_items = app.config.items.clone();
                            if app.config.sort_by != crate::config::SortOrder::Custom {
                                app.sort_items_in_place();
                            }
                        }
                        if let Some(pos) = app.config.items.iter().position(|x| x == &wt_path_str) {
                            app.selected_index = pos;
                            app.open_detail();
                        }
                    } else {
                        app.status_message =
                            Some("Worktree path does not exist on disk".to_string());
                    }
                }
            }
        }
        return true;
    }
    false
}