1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-10-25 05:37:37 +03:00

Restrucure project in a way where it is more modular

This commit is contained in:
Andrei Miulescu
2018-08-12 19:31:27 +10:00
parent 98c22a36fd
commit dcd461d29f
22 changed files with 357 additions and 58 deletions

28
pkg/git/git_structs.go Normal file
View File

@@ -0,0 +1,28 @@
package git
// 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
}