Skip to main content

ls_remote

Function ls_remote 

Source
pub fn ls_remote(url: &str, ref_name: &str) -> Result<String, String>
Expand description

List remote refs and find the commit SHA for a given ref name (equivalent to git ls-remote <url> <ref>).

Searches for the ref in refs/heads/<ref_name>, refs/tags/<ref_name>, and as a direct match.