mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-05 00:59:19 +02:00
Store fromHash/toHash in Pipe struct as pointers
Now that commit hashes are stored in a pool and referenced by pointer by the commits, we can use those same pointers in the pipes.
This commit is contained in:
@ -36,7 +36,7 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
||||
shortTimeFormat string
|
||||
now time.Time
|
||||
parseEmoji bool
|
||||
selectedCommitHash string
|
||||
selectedCommitHashPtr *string
|
||||
startIdx int
|
||||
endIdx int
|
||||
showGraph bool
|
||||
@ -563,7 +563,7 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
|
||||
s.shortTimeFormat,
|
||||
s.now,
|
||||
s.parseEmoji,
|
||||
s.selectedCommitHash,
|
||||
s.selectedCommitHashPtr,
|
||||
s.startIdx,
|
||||
s.endIdx,
|
||||
s.showGraph,
|
||||
|
Reference in New Issue
Block a user