2019-03-09 23:42:10 +09:00
|
|
|
package commands
|
|
|
|
|
|
|
|
// CommitFile : A git commit file
|
|
|
|
type CommitFile struct {
|
2020-08-22 18:29:09 +10:00
|
|
|
// Parent is the identifier of the parent object e.g. a commit SHA if this commit file is for a commit, or a stash entry ref like 'stash@{1}'
|
2020-08-21 20:10:25 +10:00
|
|
|
Parent string
|
2019-03-09 23:42:10 +09:00
|
|
|
Name string
|
|
|
|
DisplayString string
|
2019-11-04 19:47:25 +11:00
|
|
|
Status int // one of 'WHOLE' 'PART' 'NONE'
|
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
|
|
|
|
}
|