mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-11-26 09:00:57 +02:00
37 lines
766 B
Go
37 lines
766 B
Go
package commands
|
|
|
|
// File : A staged/unstaged file
|
|
// TODO: decide whether to give all of these the Git prefix
|
|
type File struct {
|
|
Name string
|
|
HasStagedChanges bool
|
|
HasUnstagedChanges bool
|
|
Tracked bool
|
|
Deleted bool
|
|
HasMergeConflicts bool
|
|
DisplayString string
|
|
}
|
|
|
|
// Commit : A git commit
|
|
type Commit struct {
|
|
Sha string
|
|
Name string
|
|
Pushed bool
|
|
DisplayString string
|
|
}
|
|
|
|
// StashEntry : A git stash entry
|
|
type StashEntry struct {
|
|
Index int
|
|
Name string
|
|
DisplayString string
|
|
}
|
|
|
|
// Conflict : A git conflict with a start middle and end corresponding to line
|
|
// numbers in the file where the conflict bars appear
|
|
type Conflict struct {
|
|
start int
|
|
middle int
|
|
end int
|
|
}
|