summaryrefslogtreecommitdiffstats
path: root/pkg/gui/commits_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-22 08:49:02 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit974c6510b8fbda23b79f365efb18f2091cd757a6 (patch)
tree3b0e87827f2785cf37b7c8e09a64c7bac69fec33 /pkg/gui/commits_panel.go
parent41df63cdc4d799ce7d78ecb0b1ed96dea65f1739 (diff)
add sub commit context
Diffstat (limited to 'pkg/gui/commits_panel.go')
-rw-r--r--pkg/gui/commits_panel.go16
1 files changed, 10 insertions, 6 deletions
diff --git a/pkg/gui/commits_panel.go b/pkg/gui/commits_panel.go
index 427f62b71..3663112ee 100644
--- a/pkg/gui/commits_panel.go
+++ b/pkg/gui/commits_panel.go
@@ -98,12 +98,16 @@ func (gui *Gui) refreshCommits() error {
}
func (gui *Gui) refreshCommitsWithLimit() error {
- builder, err := commands.NewCommitListBuilder(gui.Log, gui.GitCommand, gui.OSCommand, gui.Tr, gui.State.CherryPickedCommits)
- if err != nil {
- return err
- }
-
- commits, err := builder.GetCommits(commands.GetCommitsOptions{Limit: gui.State.Panels.Commits.LimitCommits, FilterPath: gui.State.FilterPath})
+ builder := commands.NewCommitListBuilder(gui.Log, gui.GitCommand, gui.OSCommand, gui.Tr, gui.State.CherryPickedCommits)
+
+ commits, err := builder.GetCommits(
+ commands.GetCommitsOptions{
+ Limit: gui.State.Panels.Commits.LimitCommits,
+ FilterPath: gui.State.FilterPath,
+ IncludeRebaseCommits: true,
+ RefName: "HEAD",
+ },
+ )
if err != nil {
return err
}