1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-16 11:37:01 +02:00
lazygit/pkg/commands/models/commit_file.go

18 lines
356 B
Go
Raw Normal View History

2020-09-29 10:48:38 +02:00
package models
// CommitFile : A git commit file
type CommitFile struct {
// TODO: rename this to Path
2021-03-31 13:08:55 +02:00
Name string
ChangeStatus string // e.g. 'A' for added or 'M' for modified. This is based on the result from git diff --name-status
}
func (f *CommitFile) ID() string {
return f.Name
}
func (f *CommitFile) Description() string {
return f.Name
}