diff options
Diffstat (limited to 'src/git')
| -rw-r--r-- | src/git/mod.rs | 4 |
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 | ||
| 97 | pub 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. |