2019-03-09 16:42:10 +02:00
|
|
|
package commands
|
|
|
|
|
|
|
|
// CommitFile : A git commit file
|
|
|
|
type CommitFile struct {
|
|
|
|
Sha string
|
|
|
|
Name string
|
|
|
|
DisplayString string
|
2019-11-04 10:47:25 +02:00
|
|
|
Status int // one of 'WHOLE' 'PART' 'NONE'
|
2019-03-09 16:42:10 +02:00
|
|
|
}
|
|
|
|
|
2019-11-04 10:47:25 +02:00
|
|
|
const (
|
|
|
|
// UNSELECTED is for when the commit file has not been added to the patch in any way
|
|
|
|
UNSELECTED = iota
|
|
|
|
// WHOLE is for when you want to add the whole diff of a file to the patch,
|
|
|
|
// including e.g. if it was deleted
|
|
|
|
WHOLE = iota
|
|
|
|
// PART is for when you're only talking about specific lines that have been modified
|
|
|
|
PART
|
|
|
|
)
|