aboutsummaryrefslogtreecommitdiff
path: root/git2c/git_types.go
diff options
context:
space:
mode:
Diffstat (limited to 'git2c/git_types.go')
-rw-r--r--git2c/git_types.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/git2c/git_types.go b/git2c/git_types.go
new file mode 100644
index 0000000..da90db6
--- /dev/null
+++ b/git2c/git_types.go
@@ -0,0 +1,22 @@
+package git2c
+
+type Commit struct {
+ Hash string
+ Author string
+ Email string
+ Date string
+ Message string
+}
+
+type FilenameContents struct {
+ Filename string
+ Content []byte
+}
+
+type TreeEntry struct {
+ Name string
+ Mode string
+ Size uint64
+ IsFile bool
+ IsSubtree bool
+}