A path as git writes it: as it is, or between double quotes with C escapes (\", \t, \303\251) when it holds a quote, a backslash or a control character.
Constantes6
ADDED
const ADDED = 'added'
COPIED
const COPIED = 'copied'
DELETED
const DELETED = 'deleted'
MODIFIED
const MODIFIED = 'modified'
RENAMED
const RENAMED = 'renamed'
SUBMODULE_MODE
the mode git gives a submodule: its "content" is the commit it points to
Start a file from the rest of its diff --git a/<old> b/<new> line.
static function FromHeader(string $paths): selfThe two paths are only a guess there when they hold spaces: the `---`/`+++` and `rename` lines that follow
settle them, and only a binary file or a mode change has none of those.
A path as git writes it: as it is, or between double quotes with C escapes (\", \t, \303\251) when it holds a quote, a backslash or a control character.
static function Unquote(string $quoted, int &$end = 0): string