allow getting the current item generically

This commit is contained in:
Jesse Duffield 2020-08-22 09:01:14 +10:00
parent 974c6510b8
commit 0ac402792b
9 changed files with 49 additions and 31 deletions

View file

@ -7,3 +7,7 @@ type CommitFile struct {
DisplayString string
Status int // one of 'WHOLE' 'PART' 'NONE'
}
func (f *CommitFile) ID() string {
return f.Name
}