summaryrefslogtreecommitdiffstats
path: root/pkg/commands/commit_file.go
diff options
context:
space:
mode:
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}
+}