Skip to main content

IDENTITY_QUERY

Constant IDENTITY_QUERY 

Source
pub const IDENTITY_QUERY: &[&str];
Expand description

What: The rev-parse options of the identity query, in output order. &[&str] is a borrowed list of borrowed strings compiled into the program. Why: One query answers everything. --show-toplevel is last because Git stops there in a bare repository after already printing the first three lines.

In TS you’d write (pseudocode):

const IDENTITY_QUERY = ['rev-parse', '--path-format=absolute', ...] as const;