pub fn draw(
f: &mut Frame<'_>,
item_name: &str,
detail: &ItemDetail,
mode: &Mode,
focus: &DetailSection,
last_staging_focus: DetailSection,
commit_selection: usize,
commit_search_query: &Option<String>,
file_selection: usize,
file_diff: &[DiffLine],
diff_scroll: usize,
staging_file_selection: usize,
commit_details_scroll: usize,
local_branch_selection: usize,
remote_branch_selection: usize,
local_tag_selection: usize,
remote_selection: usize,
remote_picker_selection: usize,
stash_selection: usize,
stash_file_selection: usize,
file_list_selection: usize,
file_content_scroll: usize,
visible_files: &[FileTreeItem],
detail_tab: usize,
graph_scroll: usize,
graph_selection: usize,
help_scroll: usize,
areas: &mut DetailAreas,
input_buffer: &str,
commit_editing: bool,
branch_action_target: &Option<(String, bool)>,
tag_action_target_oid: &Option<String>,
tag_delete_target: &Option<(String, bool)>,
tag_push_target: &Option<String>,
discard_target: &Option<(String, bool)>,
stash_apply_delete_after: bool,
commit_amend: bool,
commit_input_scroll: usize,
inspect_horizontal_split_pct: u16,
inspect_vertical_split_pct: u16,
workspace_main_split_pct: u16,
files_horizontal_split_pct: u16,
branches_horizontal_split_pct: u16,
stashes_horizontal_split_pct: u16,
stashes_vertical_split_pct: u16,
overview_horizontal_split_pct: u16,
app: &App,
area: Rect,
)Expand description
Renders the detail view into area and records panel bounds in areas.