1 2 3 4 5 6 7 8 9 10 11 12 13
package commands // CommitFile : A git commit file type CommitFile struct { Sha string Name string DisplayString string } // GetDisplayStrings is a function. func (f *CommitFile) GetDisplayStrings(isFocused bool) []string { return []string{f.DisplayString} }