1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

progress on refactor

This commit is contained in:
Jesse Duffield
2018-08-13 20:26:02 +10:00
parent f9c39ad64b
commit 97cff65612
23 changed files with 1104 additions and 1086 deletions

View File

@ -2,7 +2,7 @@ package commands
// File : A staged/unstaged file
// TODO: decide whether to give all of these the Git prefix
type GitFile struct {
type File struct {
Name string
HasStagedChanges bool
HasUnstagedChanges bool
@ -27,8 +27,10 @@ type StashEntry struct {
DisplayString string
}
// Branch : A git branch
type Branch struct {
Name string
Recency 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
}