file tree for commit files

This commit is contained in:
Jesse Duffield 2021-03-31 22:08:55 +11:00
parent ac41c41809
commit 332a3c4cbf
17 changed files with 406 additions and 200 deletions

View file

@ -2,9 +2,7 @@ package models
// CommitFile : A git commit file
type CommitFile struct {
// Parent is the identifier of the parent object e.g. a commit SHA if this commit file is for a commit, or a stash entry ref like 'stash@{1}'
Parent string
Name string
Name string
// PatchStatus tells us whether the file has been wholly or partially added to a patch. We might want to pull this logic up into the gui package and make it a map like we do with cherry picked commits
PatchStatus int // one of 'WHOLE' 'PART' 'NONE'