1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

rename sha to hash 8, update some log and comment

This commit is contained in:
pikomonde
2024-03-21 02:04:35 +07:00
committed by Stefan Haller
parent fccfbf1f63
commit de1c495704
6 changed files with 14 additions and 14 deletions

View File

@ -244,12 +244,12 @@ func moveFixupCommitDown(todos []todo.Todo, originalSha string, fixupSha string)
originalShaCount := lo.CountBy(todos, isOriginal)
if originalShaCount != 1 {
return nil, fmt.Errorf("Expected exactly one original SHA, found %d", originalShaCount)
return nil, fmt.Errorf("Expected exactly one original hash, found %d", originalShaCount)
}
fixupShaCount := lo.CountBy(todos, isFixup)
if fixupShaCount != 1 {
return nil, fmt.Errorf("Expected exactly one fixup SHA, found %d", fixupShaCount)
return nil, fmt.Errorf("Expected exactly one fixup hash, found %d", fixupShaCount)
}
_, fixupIndex, _ := lo.FindIndexOf(todos, isFixup)