Page MenuHomePhabricator

function gitsprintf($pattern)
libphutil Technical Documentation ()

Format a Git ref selector. This formatting is important when executing commands like "git log" which can not unambiguously parse all values as ref selectors.

Supports the following conversions:

%s Ref Selector

Escapes a Git ref selector. In particular, this will reject ref selectors
which Git may interpret as flags.

%R Raw String

Passes text through unescaped.
Parameters
$pattern
Return
wild