summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_structs.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-13 20:26:02 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-13 20:26:02 +1000
commit97cff656121270e9c790432e28622d92ab7b0f1a (patch)
tree7425013e94dc0a19699b48bde6bb20c6f5b86c8a /pkg/commands/git_structs.go
parentf9c39ad64bddd1577636c0ce5606eda44bc704ef (diff)
progress on refactor
Diffstat (limited to 'pkg/commands/git_structs.go')
-rw-r--r--pkg/commands/git_structs.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkg/commands/git_structs.go b/pkg/commands/git_structs.go
index dd28d15fa..2f7255be1 100644
--- a/pkg/commands/git_structs.go
+++ b/pkg/commands/git_structs.go
@@ -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
}