summaryrefslogtreecommitdiff
path: root/server/src/git_socket.rs
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-02-01 22:42:11 +0100
committerJoel Klinghed <the_jk@spawned.biz>2025-02-01 22:42:11 +0100
commitd780391408b9e6d443e5e4f907748cae484b79fb (patch)
treed961efd62478248081d1a327c818d6fa171f0a2d /server/src/git_socket.rs
parent05b674190f26e2a58cc7b7288586c031552d50f3 (diff)
Use workspace instead of features
Having to include --feature=build-server in basically all commands that wasn't building eyeballs-githook got tiring quickly. Instead, use workspaces, with a separate project for building the githook. It means I also had to add a library common with code shared by both githook and server.
Diffstat (limited to 'server/src/git_socket.rs')
-rw-r--r--server/src/git_socket.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/server/src/git_socket.rs b/server/src/git_socket.rs
deleted file mode 100644
index a4805be..0000000
--- a/server/src/git_socket.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-use serde::{Deserialize, Serialize};
-
-#[derive(Deserialize, Serialize)]
-pub struct GitReceive {
- pub old_value: String,
- pub new_value: String,
- pub reference: String,
- // Only set for pre hooks, because server can't read the objects the pre-hook has not yet
- // accepted, so to be able to validate the commiter, send them. Also only set if new_value
- // is not empty.
- pub commiter: Option<String>,
-}
-
-#[derive(Deserialize, Serialize)]
-pub struct GitHookRequest {
- pub pre: bool,
- pub receive: Vec<GitReceive>,
-}
-
-#[derive(Deserialize, Serialize)]
-pub struct GitHookResponse {
- pub ok: bool,
- pub message: String,
-}