diff options
author | Yuki Osaki <yuki.osaki7@gmail.com> | 2020-11-27 16:07:14 +0900 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-28 19:19:47 +1100 |
commit | 4928d1d490becaac9464ac1d6217ab60382791cc (patch) | |
tree | 4a14a398b633d046bd8e5570efab638093078e3b /pkg/gui/recent_repos_panel.go | |
parent | 9c52eb9d6f2d2eadd30852bba49b148e785b06d3 (diff) |
Visualize the commits for all branches
Diffstat (limited to 'pkg/gui/recent_repos_panel.go')
-rw-r--r-- | pkg/gui/recent_repos_panel.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/gui/recent_repos_panel.go b/pkg/gui/recent_repos_panel.go index 7b15dd41a..6fe038111 100644 --- a/pkg/gui/recent_repos_panel.go +++ b/pkg/gui/recent_repos_panel.go @@ -32,6 +32,20 @@ func (gui *Gui) handleCreateRecentReposMenu() error { return gui.createMenu(gui.Tr.RecentRepos, menuItems, createMenuOptions{showCancel: true}) } +func (gui *Gui) handleShowAllBranchLogs() error { + cmd := gui.OSCommand.ExecutableFromString( + gui.Config.GetUserConfig().Git.AllBranchesLogCmd, + ) + task := gui.createRunPtyTask(cmd) + + return gui.refreshMainViews(refreshMainOpts{ + main: &viewUpdateOpts{ + title: "Log", + task: task, + }, + }) +} + func (gui *Gui) dispatchSwitchToRepo(path string) error { env.UnsetGitDirEnvs() if err := os.Chdir(path); err != nil { |