mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-25 00:46:54 +02:00
rename sha to hash
This commit is contained in:
docs
pkg
app
commands
git_commands
commit_loader.gocommit_loader_test.gopatch.gorebase.gorebase_test.goreflog_commit_loader.goreflog_commit_loader_test.gostash.gostash_test.go
models
gui
context
controllers
basic_commits_controller.gobisect_controller.gocustom_patch_options_menu_action.go
helpers
local_commits_controller.goreflog_commits_controller.gosub_commits_controller.goundo_controller.gomodes
cherrypicking
presentation
utils
@ -43,7 +43,7 @@ const (
|
||||
|
||||
// Commit : A git commit
|
||||
type Commit struct {
|
||||
Sha string
|
||||
Hash string
|
||||
Name string
|
||||
Status CommitStatus
|
||||
Action todo.TodoCommand
|
||||
@ -59,15 +59,15 @@ type Commit struct {
|
||||
}
|
||||
|
||||
func (c *Commit) ShortSha() string {
|
||||
return utils.ShortSha(c.Sha)
|
||||
return utils.ShortSha(c.Hash)
|
||||
}
|
||||
|
||||
func (c *Commit) FullRefName() string {
|
||||
return c.Sha
|
||||
return c.Hash
|
||||
}
|
||||
|
||||
func (c *Commit) RefName() string {
|
||||
return c.Sha
|
||||
return c.Hash
|
||||
}
|
||||
|
||||
func (c *Commit) ParentRefName() string {
|
||||
@ -86,7 +86,7 @@ func (c *Commit) ID() string {
|
||||
}
|
||||
|
||||
func (c *Commit) Description() string {
|
||||
return fmt.Sprintf("%s %s", c.Sha[:7], c.Name)
|
||||
return fmt.Sprintf("%s %s", c.Hash[:7], c.Name)
|
||||
}
|
||||
|
||||
func (c *Commit) IsMerge() bool {
|
||||
|
Reference in New Issue
Block a user