1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

add feature of display diff between specific commits #397

This commit is contained in:
skanehira
2019-03-23 22:46:08 +09:00
committed by Jesse Duffield
parent 1a933eaa73
commit c350cdba43
11 changed files with 131 additions and 24 deletions

View File

@ -103,7 +103,8 @@ type branchPanelState struct {
}
type commitPanelState struct {
SelectedLine int
SelectedLine int
SpecificDiffMode bool
}
type stashPanelState struct {
@ -135,6 +136,7 @@ type guiState struct {
Commits []*commands.Commit
StashEntries []*commands.StashEntry
CommitFiles []*commands.CommitFile
DiffEntries map[string]*commands.Commit
MenuItemCount int // can't store the actual list because it's of interface{} type
PreviousView string
Platform commands.Platform
@ -154,6 +156,7 @@ func NewGui(log *logrus.Entry, gitCommand *commands.GitCommand, oSCommand *comma
Commits: make([]*commands.Commit, 0),
CherryPickedCommits: make([]*commands.Commit, 0),
StashEntries: make([]*commands.StashEntry, 0),
DiffEntries: make(map[string]*commands.Commit),
Platform: *oSCommand.Platform,
Panels: &panelStates{
Files: &filePanelState{SelectedLine: -1},