Skip to main content

git_raw_url

Function git_raw_url 

Source
pub fn git_raw_url(
    repo: &str,
    commit: &str,
    root: &Path,
    item_path: &Path,
) -> Option<String>
Expand description

Return a {repo}/raw/{commit}/... URL suitable for embedding binary assets (images, fonts, etc.) directly rather than the GitHub blob viewer page.