From 9b17278aece47aca17d32a37f67b7078708e78be Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 5 Apr 2025 17:21:14 +0800 Subject: Refactor git2d comms to ./git2c --- git2c/git_types.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 git2c/git_types.go (limited to 'git2c/git_types.go') 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 +} -- cgit v1.2.3