summaryrefslogtreecommitdiffstats
path: root/pkg/commands/commit_file.go
diff options
context:
space:
mode:
authorskanehira <sho19921005@gmail.com>2019-03-09 23:42:10 +0900
committerJesse Duffield <jessedduffield@gmail.com>2019-03-16 10:20:27 +1100
commit06fe726ee79d3993d936ae3e064761273b657ae8 (patch)
tree1da4c337f9e506944f762c09ba930451c5c823b4 /pkg/commands/commit_file.go
parent1b6e46973ebfdb6ba873fac6a2ce05bb1f8db8c1 (diff)
Add feature of display committed file list #383
Diffstat (limited to 'pkg/commands/commit_file.go')
-rw-r--r--pkg/commands/commit_file.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/commands/commit_file.go b/pkg/commands/commit_file.go
new file mode 100644
index 000000000..5910ccfec
--- /dev/null
+++ b/pkg/commands/commit_file.go
@@ -0,0 +1,13 @@
+package commands
+
+// CommitFile : A git commit file
+type CommitFile struct {
+ Sha string
+ Name string
+ DisplayString string
+}
+
+// GetDisplayStrings is a function.
+func (f *CommitFile) GetDisplayStrings() []string {
+ return []string{f.DisplayString}
+}