upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/git/mod.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-31 09:18:21 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-31 10:49:09 +0000
commit768fe91caa676e4501aa26e14e01ca47f3ea4ca1 (patch)
treee697becb6b2253909d399073f5c2bd2d571fcf5e /src/git/mod.rs
parent3d6901831904141166d9ed8f47813c45cba109b6 (diff)
purgatory: fix pr event recieve code
Diffstat (limited to 'src/git/mod.rs')
-rw-r--r--src/git/mod.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/git/mod.rs b/src/git/mod.rs
index 1847c8c..d34f98b 100644
--- a/src/git/mod.rs
+++ b/src/git/mod.rs
@@ -94,10 +94,6 @@ pub fn oid_exists(repo_path: &Path, oid: &str) -> bool {
94 } 94 }
95} 95}
96 96
97pub fn is_valid_oid(oid: &str) -> bool {
98 oid.len() >= 5 && oid.len() <= 40 && oid.chars().all(|c| c.is_digit(16))
99}
100
101/// Set the repository HEAD to point to a branch 97/// Set the repository HEAD to point to a branch
102/// 98///
103/// This updates the HEAD symbolic ref to point to the specified branch. 99/// This updates the HEAD symbolic ref to point to the specified branch.