diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 17:21:14 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 17:21:14 +0800 |
commit | 9b17278aece47aca17d32a37f67b7078708e78be (patch) | |
tree | 8badae3ed3e9594fae3f9de6e23468165a69e5d4 /git2c/git_types.go | |
parent | Remove the extra .gitignore in man/ (diff) | |
download | forge-9b17278aece47aca17d32a37f67b7078708e78be.tar.gz forge-9b17278aece47aca17d32a37f67b7078708e78be.tar.zst forge-9b17278aece47aca17d32a37f67b7078708e78be.zip |
Refactor git2d comms to ./git2c
Diffstat (limited to 'git2c/git_types.go')
-rw-r--r-- | git2c/git_types.go | 22 |
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 +} |