mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-07 22:02:56 +03:00
Make Commit.Hash a getter for an unexported hash field
This is in preparation for turning the hash into pointer to a string.
This commit is contained in:
@@ -26,8 +26,8 @@ func commitShimFromModelCommit(commit *models.Commit) *Commit {
|
||||
}
|
||||
|
||||
return &Commit{
|
||||
Hash: commit.Hash,
|
||||
Sha: commit.Hash,
|
||||
Hash: commit.Hash(),
|
||||
Sha: commit.Hash(),
|
||||
Name: commit.Name,
|
||||
Status: commit.Status,
|
||||
Action: commit.Action,
|
||||
@@ -173,8 +173,8 @@ func makeCommitRange(commits []*models.Commit, _ int, _ int) *CommitRange {
|
||||
}
|
||||
|
||||
return &CommitRange{
|
||||
From: commits[len(commits)-1].Hash,
|
||||
To: commits[0].Hash,
|
||||
From: commits[len(commits)-1].Hash(),
|
||||
To: commits[0].Hash(),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user