Skip to main content

first_committed

Function first_committed 

Source
pub fn first_committed(repo_root: &Path, path: &Path) -> Option<String>
Expand description

The earliest commit time for path as the verbatim %cI string of the first non-blank line (committer offset preserved), or None when the file is untracked / uncommitted / outside a repo. Mirrors git log --reverse --format=%cI -- <path> (oldest first, first line is the creation commit) — used by the OKF export’s created field.