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