1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-05 15:15:49 +02:00
lazygit/pkg/commands/git_structs.go

37 lines
776 B
Go
Raw Normal View History

2018-08-12 21:04:47 +10:00
package commands
// File : A staged/unstaged file
2018-08-13 20:26:02 +10:00
type File struct {
Name string
HasStagedChanges bool
HasUnstagedChanges bool
Tracked bool
Deleted bool
HasMergeConflicts bool
DisplayString string
2018-08-28 19:12:35 +10:00
Type string // one of 'file', 'directory', and 'other'
}
// 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
}
2018-08-12 21:04:47 +10:00
2018-08-13 20:26:02 +10:00
// 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 {
2018-08-13 21:16:21 +10:00
Start int
Middle int
End int
2018-08-12 21:04:47 +10:00
}