mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 04:45:47 +02:00
rename sha to hash 9, case: Sha
This commit is contained in:
parent
de1c495704
commit
170c4ecb8c
12 changed files with 90 additions and 90 deletions
|
@ -94,8 +94,8 @@ func (self *BisectCommands) GetInfoForGitDir(gitDir string) *BisectInfo {
|
|||
self.Log.Infof("error getting git bisect info: %s", err.Error())
|
||||
return info
|
||||
}
|
||||
currentSha := strings.TrimSpace(string(currentContent))
|
||||
info.current = currentSha
|
||||
currentHash := strings.TrimSpace(string(currentContent))
|
||||
info.current = currentHash
|
||||
|
||||
return info
|
||||
}
|
||||
|
@ -143,8 +143,8 @@ func (self *BisectCommands) IsDone() (bool, []string, error) {
|
|||
return false, nil, nil
|
||||
}
|
||||
|
||||
newSha := info.GetNewHash()
|
||||
if newSha == "" {
|
||||
newHash := info.GetNewHash()
|
||||
if newHash == "" {
|
||||
return false, nil, nil
|
||||
}
|
||||
|
||||
|
@ -153,7 +153,7 @@ func (self *BisectCommands) IsDone() (bool, []string, error) {
|
|||
done := false
|
||||
candidates := []string{}
|
||||
|
||||
cmdArgs := NewGitCmd("rev-list").Arg(newSha).ToArgv()
|
||||
cmdArgs := NewGitCmd("rev-list").Arg(newHash).ToArgv()
|
||||
err := self.cmd.New(cmdArgs).RunAndProcessLines(func(line string) (bool, error) {
|
||||
hash := strings.TrimSpace(line)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue