upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/git/protocol.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git/protocol.rs')
-rw-r--r--src/git/protocol.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/git/protocol.rs b/src/git/protocol.rs
index 84da131..93177de 100644
--- a/src/git/protocol.rs
+++ b/src/git/protocol.rs
@@ -157,6 +157,14 @@ impl GitService {
157 } 157 }
158 } 158 }
159 159
160 /// Get the git command name (without "git-" prefix) for subprocess invocation
161 pub fn command_name(&self) -> &'static str {
162 match self {
163 Self::UploadPack => "upload-pack",
164 Self::ReceivePack => "receive-pack",
165 }
166 }
167
160 /// Get the content type for the service advertisement 168 /// Get the content type for the service advertisement
161 pub fn advertisement_content_type(&self) -> &'static str { 169 pub fn advertisement_content_type(&self) -> &'static str {
162 match self { 170 match self {