☰
cargo
1.75.0-dev
In cargo::sources::git::utils
Structs
GitCheckout
GitDatabase
GitRemote
GitShortID
Enums
FastPathRev
Constants
CHECKOUT_READY_LOCK
Functions
absolute_submodule_url
clean_repo_temp_files
fetch
fetch_with_cli
github_fast_path
has_shallow_lock_file
init
is_github
is_short_hash_of
looks_like_commit_hash
maybe_gc_repo
reinitialize
reset
serialize_str
with_authentication
with_fetch_options
?
Function
cargo
::
sources
::
git
::
utils
::
is_short_hash_of
source
·
[
−
]
fn is_short_hash_of(rev: &
str
, oid:
Oid
) ->
bool
Expand description
Whether
rev
is a shorter hash of
oid
.