jesseduffield.lazygit/pkg/gui
Jesse Duffield f172f20219 Return whether the context has a parent or not along with that parent
There has got to be a better way around this but if we're returning a Context
from a function (Context is an interface, not a concrete type), even if we
return nil, on the calling end it won't be equal to nil because an interface
value is a tuple of the type and the value meaning it's never itself nil,
unless both values in the tuple are nil.

So we're explicitly returning whether or not the underlying concrete type is nil.
2020-08-23 22:30:32 +00:00
..
boxlayout commit files kind of generalised 2020-08-23 14:29:18 +10:00
presentation rename Status to PatchStatus 2020-08-23 15:11:06 +10:00
app_status_manager.go clean up interface for popup panels 2020-08-15 18:01:43 +10:00
arrangement.go enlargen stash window when its focused 2020-08-23 15:11:06 +10:00
branches_panel.go when in the remote branches view, prefill name for creating branch off of remote branch 2020-08-23 19:27:34 +10:00
cherry_picking.go use context to return to the correct view 2020-08-23 14:29:18 +10:00
commit_files_panel.go better handling of there being no commit files 2020-08-23 15:11:06 +10:00
commit_message_panel.go lots more stuff 2020-08-23 14:29:18 +10:00
commits_panel.go use context to return to the correct view 2020-08-23 14:29:18 +10:00
confirmation_panel.go allow explicitly managing focus 2020-08-23 14:29:18 +10:00
context.go Return whether the context has a parent or not along with that parent 2020-08-23 22:30:32 +00:00
credentials_panel.go we've now flipped the boolean 2020-08-23 14:29:18 +10:00
diffing.go use context to return to the correct view 2020-08-23 14:29:18 +10:00
discard_changes_menu_panel.go standardise getting selected item 2020-08-23 14:29:18 +10:00
file_watching.go smart refreshing files 2020-03-28 11:59:45 +11:00
files_panel.go allow spamming the p key 2020-08-23 11:30:29 +00:00
filtering.go use context to return to the correct view 2020-08-23 14:29:18 +10:00
filtering_menu_panel.go use context to return to the correct view 2020-08-23 14:29:18 +10:00
git_flow.go use context to return to the correct view 2020-08-23 14:29:18 +10:00
global_handlers.go allow spamming the p key 2020-08-23 11:30:29 +00:00
gui.go allow spamming the p key 2020-08-23 11:30:29 +00:00
keybindings.go set keybindings after initialising views 2020-08-23 17:49:58 +10:00
layout.go set keybindings after initialising views 2020-08-23 17:49:58 +10:00
line_by_line_panel.go ensure there is always a current context 2020-08-23 14:29:18 +10:00
list_context.go Return whether the context has a parent or not along with that parent 2020-08-23 22:30:32 +00:00
main_panels.go run task for appropriate view 2020-08-23 14:29:18 +10:00
menu_panel.go centralise logic for rendering options map 2020-08-23 14:29:18 +10:00
merge_panel.go fix focus change on merge popup return 2020-08-23 19:28:59 +10:00
modes.go more standardising modes 2020-08-23 14:29:18 +10:00
options_menu_panel.go remove old createMenu function 2020-02-15 08:47:36 +11:00
patch_building_panel.go better handling of there being no commit files 2020-08-23 15:11:06 +10:00
patch_options_panel.go use context to return to the correct view 2020-08-23 14:29:18 +10:00
pty.go pkg: use upstream pty package 2020-03-25 21:26:15 +11:00
pty_windows.go refactor 2020-03-04 00:12:23 +11:00
quitting.go Return whether the context has a parent or not along with that parent 2020-08-23 22:30:32 +00:00
rebase_options_panel.go fix focus change on merge popup return 2020-08-23 19:28:59 +10:00
recent_repos_panel.go refactor how we handle different modes 2020-08-23 14:29:18 +10:00
reflog_panel.go use context to return to the correct view 2020-08-23 14:29:18 +10:00
remote_branches_panel.go use context to return to the correct view 2020-08-23 14:29:18 +10:00
remotes_panel.go allow spamming the p key 2020-08-23 11:30:29 +00:00
reset_menu_panel.go rename to SelectedLineIdx 2020-08-23 14:29:18 +10:00
searching.go more standardisation of rendering 2020-08-23 14:29:18 +10:00
side_window.go better logic for taking focus away from popup panels 2020-08-23 14:29:18 +10:00
staging_panel.go allow explicitly managing focus 2020-08-23 14:29:18 +10:00
stash_panel.go use context to return to the correct view 2020-08-23 14:29:18 +10:00
status_panel.go safer getting of branch 2020-08-23 17:49:58 +10:00
sub_commits_panel.go use context to return to the correct view 2020-08-23 14:29:18 +10:00
tags_panel.go use context to return to the correct view 2020-08-23 14:29:18 +10:00
tasks_adapter.go clean up interface for popup panels 2020-08-15 18:01:43 +10:00
undoing.go use context to return to the correct view 2020-08-23 14:29:18 +10:00
updates.go format 2020-08-23 14:29:18 +10:00
view_helpers.go centralise logic for rendering options map 2020-08-23 14:29:18 +10:00
window.go cleanup 2020-08-23 14:29:18 +10:00
workspace_reset_options_panel.go better error handling 2020-03-28 11:59:45 +11:00