Skip to main content

is_lfs_pointer

Function is_lfs_pointer 

Source
pub fn is_lfs_pointer(content: &str) -> bool
Expand description

Check if content is a Git LFS pointer file

Supports both standard git-lfs and legacy hawser version URLs.

§Example

ⓘ
if git2db::lfs::is_lfs_pointer(&content) {
    // Handle as LFS pointer
}