mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +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:
@ -51,7 +51,7 @@ func GetCommitListDisplayStrings(
|
||||
shortTimeFormat string,
|
||||
now time.Time,
|
||||
parseEmoji bool,
|
||||
selectedCommitHash string,
|
||||
selectedCommitHashPtr *string,
|
||||
startIdx int,
|
||||
endIdx int,
|
||||
showGraph bool,
|
||||
@ -102,7 +102,7 @@ func GetCommitListDisplayStrings(
|
||||
graphLines := graph.RenderAux(
|
||||
graphPipeSets,
|
||||
graphCommits,
|
||||
selectedCommitHash,
|
||||
selectedCommitHashPtr,
|
||||
)
|
||||
allGraphLines = append(allGraphLines, graphLines...)
|
||||
}
|
||||
@ -119,7 +119,7 @@ func GetCommitListDisplayStrings(
|
||||
graphLines := graph.RenderAux(
|
||||
graphPipeSets,
|
||||
graphCommits,
|
||||
selectedCommitHash,
|
||||
selectedCommitHashPtr,
|
||||
)
|
||||
allGraphLines = append(allGraphLines, graphLines...)
|
||||
}
|
||||
@ -140,7 +140,7 @@ func GetCommitListDisplayStrings(
|
||||
graphLines := graph.RenderAux(
|
||||
graphPipeSets,
|
||||
graphCommits,
|
||||
selectedCommitHash,
|
||||
selectedCommitHashPtr,
|
||||
)
|
||||
getGraphLine = func(idx int) string {
|
||||
if idx >= graphOffset {
|
||||
|
Reference in New Issue
Block a user