summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-03-31 22:08:55 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-02 11:00:15 +1100
commit332a3c4cbfd263c34d5f53dd971701d2ca69ab4e (patch)
tree9c2801ce55b7e2bab75fbbaa5dcf82e7d02266ce /pkg/commands
parentac41c418092b4561042b52d59b362107a0c2ecd6 (diff)
file tree for commit files
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/loading_commit_files.go1
-rw-r--r--pkg/commands/models/commit_file.go4
2 files changed, 1 insertions, 4 deletions
diff --git a/pkg/commands/loading_commit_files.go b/pkg/commands/loading_commit_files.go
index 2c71cc068..1b5dc02d4 100644
--- a/pkg/commands/loading_commit_files.go
+++ b/pkg/commands/loading_commit_files.go
@@ -38,7 +38,6 @@ func (c *GitCommand) getCommitFilesFromFilenames(filenames string, parent string
}
commitFiles = append(commitFiles, &models.CommitFile{
- Parent: parent,
Name: name,
ChangeStatus: changeStatus,
PatchStatus: status,
diff --git a/pkg/commands/models/commit_file.go b/pkg/commands/models/commit_file.go
index 17faf0142..57a766a46 100644
--- a/pkg/commands/models/commit_file.go
+++ b/pkg/commands/models/commit_file.go
@@ -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'