Skip to main content

creation_entry

Function creation_entry 

Source
pub fn creation_entry(reflog: &str) -> Option<String>
Expand description

The commit a branch’s latest creation entry names, from the raw reflog text git keeps for the ref: one <old> <new> <identity>\t<message> line per update, oldest first.

The creation entry is the one whose old object ID is all zeros. A reflog with none — expired in part, or rewritten — answers None, and so does one that does not parse: an absent creation proves nothing, which keeps the branch.