diff options
author | haowei <haoweicrushu@gmail.com> | 2019-05-22 21:34:29 +0800 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-07-14 14:24:59 +1000 |
commit | e1f5601d4b7d77a9918e7f445c7fc58f3c441969 (patch) | |
tree | e2469648bb1972305c3c276fb68ca007a1a7a8c3 /pkg/commands | |
parent | b60ecdaa24ff1867c3c7723c2b5f5d0253c0bae8 (diff) |
fix typo
Diffstat (limited to 'pkg/commands')
-rw-r--r-- | pkg/commands/branch.go | 2 | ||||
-rw-r--r-- | pkg/commands/git.go | 2 | ||||
-rw-r--r-- | pkg/commands/stash_entry.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/pkg/commands/branch.go b/pkg/commands/branch.go index 6f7a1c31e..cbcab2712 100644 --- a/pkg/commands/branch.go +++ b/pkg/commands/branch.go @@ -18,7 +18,7 @@ type Branch struct { Selected bool } -// GetDisplayStrings returns the dispaly string of branch +// GetDisplayStrings returns the display string of branch func (b *Branch) GetDisplayStrings(isFocused bool) []string { displayName := utils.ColoredString(b.Name, b.GetColor()) if isFocused && b.Selected && b.Pushables != "" && b.Pullables != "" { diff --git a/pkg/commands/git.go b/pkg/commands/git.go index 2a52ee119..fa1a73157 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -140,7 +140,7 @@ func findDotGitDir(stat func(string) (os.FileInfo, error), readFile func(filenam return strings.TrimSpace(strings.TrimPrefix(fileContent, "gitdir: ")), nil } -// GetStashEntries stash entryies +// GetStashEntries stash entries func (c *GitCommand) GetStashEntries() []*StashEntry { rawString, _ := c.OSCommand.RunCommandWithOutput("git stash list --pretty='%gs'") stashEntries := []*StashEntry{} diff --git a/pkg/commands/stash_entry.go b/pkg/commands/stash_entry.go index a9cfd95bf..a47200fd4 100644 --- a/pkg/commands/stash_entry.go +++ b/pkg/commands/stash_entry.go @@ -7,7 +7,7 @@ type StashEntry struct { DisplayString string } -// GetDisplayStrings returns the dispaly string of branch +// GetDisplayStrings returns the display string of branch func (s *StashEntry) GetDisplayStrings(isFocused bool) []string { return []string{s.DisplayString} } |