diff options
author | Andrei Miulescu <lusu777@gmail.com> | 2018-08-12 21:04:47 +1000 |
---|---|---|
committer | Andrei Miulescu <lusu777@gmail.com> | 2018-08-12 21:04:47 +1000 |
commit | e8eb78617c17d8b743fcb17c0790c42e11cd5db5 (patch) | |
tree | 44f4f66047b7be5217d77f7fb34e34fb750e7f99 /pkg/commands/git_structs.go | |
parent | e65ddd7b6facfaf3ebc8b022f26066bdf96a28b0 (diff) |
Mid refactor change some more stuff
Diffstat (limited to 'pkg/commands/git_structs.go')
-rw-r--r-- | pkg/commands/git_structs.go | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkg/commands/git_structs.go b/pkg/commands/git_structs.go new file mode 100644 index 000000000..dd28d15fa --- /dev/null +++ b/pkg/commands/git_structs.go @@ -0,0 +1,34 @@ +package commands + +// File : A staged/unstaged file +// TODO: decide whether to give all of these the Git prefix +type GitFile 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 +} + +// Branch : A git branch +type Branch struct { + Name string + Recency string +} |